16.03.2012, 11:08
Quote:
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;
}