rendered paste body if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0) { SendClientMessage(playerid,COLOR_YELLOW,"____________________________________________________"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[General:] /time - /stats - /toggle - /refuel - /spawnpoint - /withdraw - /deposit - /balance - /engine - /eat"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[General:] /carwindows - /buy - /buyweapon - /clearanims - /pay - /licenses - /showid - /buyclothes - /lock - /id"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[General:] /takejob - /quitjob - /jobcmds - /buydrink - /usedrugs - /accept - /donate - /admins - /changepass - /eject"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[Chat:] /pm - /report - (/o)oc - (/ad)vertise - /low - (/l)ocal - (/s)hout - (/w)hisper - /me - /attempt - /phonecmds"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[Houses - Businesses - Buildings:] /housecmds - /businesscmds"); if (PlayerInfo[playerid][pFaction] != 255) { if(DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1) { SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[Police:] /policecmds"); } if (PlayerInfo[playerid][pRank] == 1) { SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[Leader:] /leadercmds"); } SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[Faction:] /factioncmds"); } SendClientMessage(playerid,COLOR_YELLOW,"____________________________________________________"); return 1; } if(strcmp(cmd, "/answer", true) == 0) { if(IsPlayerConnected(playerid)) { if(Mobile[playerid] != 255) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Error] You are already on a phone call! (/hangup)."); return 1; } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Mobile[i] == playerid) { Mobile[playerid] = i; SendClientMessage(i, COLOR_PURPLE, "[Info] The person has answered your phone call."); if(!IsPlayerInAnyVehicle(playerid)) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE); } if(PlayerInfo[playerid][pSex] == 1) { PlayerActionMessage(playerid,15.0,"has just answered his mobile phone."); } else { PlayerActionMessage(playerid,15.0,"has just answered her mobile phone."); } } } } } return 1; }