Can somebody please help with this
#1

Hi users,

i have made a admin Jail command.
but maybe some of you can made a timer for it so he have to sit in jail for 1 min and then he is released to a place (cordinates i will put on it)

and make it so the player who needs to get jailed gets jailed and not the admin :$

but maybe some of you can make a start for me

pawn Код:
CMD:jail(playerid,params[])
{
    new jail[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME],string[128],pID;
    GetPlayerName(pID,jail,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: /jail <playerid> <reason>");
        }
    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_WHITE,"Invalid Player");
    else
    {
    format(string,sizeof(string),"COMMAND: %s has been jailed by %s reason: %s",jail,name,params);
    SetPlayerPos(pID, 0, 0, 0);
    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)