#6

Quote:
Originally Posted by davve95
Посмотреть сообщение
Thanks but it shoulden't be a admin command it just so you can jail ppls when they have done a crime/s

Or can't I done like this: GetPlayerWantedLevel and then if they have wanted level he can teleport to jail..
If a cop writes /jail id
pawn Код:
command(jail, playerid, params[])
{
     new pID = -1;
     if(sscanf(params, "u", pID)) return SendClientMessage(playerid, 0x0, "Usage: /jail [playerid]");
     if(!IsPlayerConnected(pID) || pID == -1 || pID == playerid) return SendClientMessage(playerid, 0x0, "You are either trying to jail yourself, or this player is yourself.");
     if(GetPlayerWantedLevel(pID) < 1) return SendClientMessage(playerid, 0x0, "This player is not wanted..");
     // tele to jail here
     // remove wanted level
     return 1;
}
Reply


Messages In This Thread
Jail - by davve95 - 16.03.2012, 07:57
Re: Jail - by T0pAz - 16.03.2012, 08:31
Re: Jail - by Ronaldo_raul™ - 16.03.2012, 09:13
Re: Jail - by Outlaaw - 16.03.2012, 09:22
Re: Jail - by davve95 - 16.03.2012, 10:33
Re: Jail - by Cameltoe - 16.03.2012, 11:08
Re: Jail - by davve95 - 16.03.2012, 15:09
Re: Jail - by davve95 - 16.03.2012, 19:43
Re: Jail - by Cameltoe - 17.03.2012, 11:15
Re: Jail - by davve95 - 17.03.2012, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)