15.01.2011, 14:13
Hello check out the command i make in under i do if(Jailed[pID] == 0){ .... but its not work when i unjail its stay unjail its not say this player is not in jail so please help!
Код:
dcmd_unjail(playerid,params[]) { new Reason[256], pID; if(Player[playerid][admin] < 3){ return SendClientMessage(playerid,COLOR_RED,"You Dont Have Right To Use This Command!"); } if(sscanf(params,"u",pID,Reason)){ return SendClientMessage(playerid,COLOR_RED,"|| Usage: /unjail [playerid] ||"); } if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!"); } new name[MAX_PLAYER_NAME], string[128], string2[128], string3[128]; GetPlayerName(pID,name,sizeof(name)); format(string,sizeof(string),"**(ADMIN UNJAIL)** %s(%d)",name,pID); format(string2,sizeof(string2),"You Have Been UNJALIED By Admin"); if(Jailed[pID] == 0) format(string, sizeof(string), "%s(%d) Is not in jail", name, playerid); SendClientMessageToAll(COLOR_RED,string); SendClientMessage(i,COLOR_RED,string2); SendClientMessage(i, COLOR_RED, string3); SetPlayerInterior(pID, 6); SetPlayerPos(pID,210.5272,146.3341,1003.0234); ResetPlayerWeapons(pID); Jailed[pID] = 0; return 1; }