All pastes #1354998 Raw Edit

Stuff

public c v1 · immutable
#1354998 ·published 2009-03-07 04:18 UTC
rendered paste body
 	if(strcmp(cmd, "/hangup", true) == 0 )	{	    if(IsPlayerConnected(playerid))		{			new caller = Mobile[playerid];			if(IsPlayerConnected(caller))			{			    if(caller != INVALID_PLAYER_ID)			    {					if(caller != 255)					{						if(caller < 255)						{							SendClientMessage(caller,  COLOR_LIGHTGREEN, "[Phone] They hung up.");							SendClientMessage(playerid,  COLOR_LIGHTGREEN, "[Phone]  You hung up.");							if(GetPlayerSpecialAction(playerid == SPECIAL_ACTION_USECELLPHONE))							{							    if(!IsPlayerInAnyVehicle(playerid))       							{									SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);								}							}							if(GetPlayerSpecialAction(caller == SPECIAL_ACTION_USECELLPHONE))							{							    if(!IsPlayerInAnyVehicle(playerid))       							{									SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE);								}							}							if(PlayerInfo[playerid][pSex] == 1)							{								PlayerActionMessage(playerid,15.0,"has put his phone in his pocket.");							}							else							{								PlayerActionMessage(playerid,15.0,"has put her phone in her pocket.");							}							Mobile[caller] = 255;														if(StartedCall[playerid])							{								new callcost = random(100);								GivePlayerCash(playerid,-callcost);								Businesses[PlayerInfo[playerid][pPhoneC]][Till] += callcost;								StartedCall[playerid] = 0;							}							else if(StartedCall[caller])							{								new callcost = random(100);								GivePlayerCash(caller,-callcost);								Businesses[PlayerInfo[caller][pPhoneC]][Till] += callcost;								StartedCall[caller] = 0;							}						}						Mobile[playerid] = 255;						return 1;					}				}			}			SendClientMessage(playerid,  COLOR_LIGHTYELLOW2, "[Error] You're not in a phone call!");		}		return 1;	}