Can somebody please help with this
#2

You can create a /unjail CMD. Example:

pawn Код:
CMD:unjail(playerid,params[])
{
    new unjail[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME],string[128],pID;
    GetPlayerName(pID,unjail,MAX_PLAYER_NAME);
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);

    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not an Admin");
    else if(isnull(params))
        {
            SendClientMessage(playerid,COLOR_WHITE,"USAGE: /unjail <playerid> <reason>");
        }
    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_WHITE,"Invalid Player");
    else
    {
    format(string,sizeof(string),"COMMAND: %s has been unjailed by %s reason: %s",jail,name,params);
    SetPlayerPos(pID, X, Y, Z);
    SendClientMessageToAll(COLOR_RED,string);
    }
    return 1;
}
Reply


Messages In This Thread
Can somebody please help with this - by Stefand - 15.11.2011, 14:26
Re: Can somebody please help with this - by KosmasRego - 15.11.2011, 15:13
Re: Can somebody please help with this - by Stefand - 15.11.2011, 15:57
Re: Can somebody please help with this - by KosmasRego - 15.11.2011, 16:10
Re: Can somebody please help with this - by Stefand - 15.11.2011, 16:16
Re: Can somebody please help with this - by SmiT - 15.11.2011, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)