Question
#1

Guys i made a jail command but i cant figure how to make that a admin can jail how much time he wants
and the command will read it like if i type /jail 0 25 it will jail the player for 25 sec or other that i pick


Here is my code:

pawn Код:
CMD:jail(playerid,params[])
{
    new ID;
    if(pInfo[playerid][Adminlevel] >= 2)
    {
       new rnd = random(sizeof(PrisonSpawn));
       SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
       SetPlayerInterior(ID,10);
       SetPVarInt(ID,"JailTime",-1);
       @Release(ID);
       return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Question - by DarkLored - 18.11.2013, 23:30
Re: Question - by Emmet_ - 18.11.2013, 23:53
Re: Question - by DarkLored - 19.11.2013, 00:24
Re: Question - by Pottus - 19.11.2013, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)