18.11.2013, 23:30
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:
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;
}