Rob and arrest commands
#5

pawn Код:
dcmd_ar(playerid, params[])
{
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Usage: /ar (id/name)");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "This player is not connected.");
    if(IsPlayerNPC(id)) return SendClientMessage(playerid,COLOR_RED,"You cannot arrest an NPC!");
    if(playerid == id) return SendClientMessage(playerid,COLOR_RED,"You can not arrest yourself"); }
    ArrestPlayer(id);
}
Reply


Messages In This Thread
Rob and arrest commands - by barneystinson - 25.10.2010, 13:36
Re: Rob and arrest commands - by BMUK - 25.10.2010, 13:42
Re: Rob and arrest commands - by barneystinson - 25.10.2010, 14:14
Re: Rob and arrest commands - by ••• ĤБĶБM ••• - 25.10.2010, 14:18
Re: Rob and arrest commands - by Kyle - 25.10.2010, 14:19
Re: Rob and arrest commands - by barneystinson - 25.10.2010, 14:42
Re: Rob and arrest commands - by Kyle - 25.10.2010, 14:45
Re: Rob and arrest commands - by Kyle - 25.10.2010, 15:27
Re: Rob and arrest commands - by Scenario - 25.10.2010, 15:30
Re: Rob and arrest commands - by barneystinson - 25.10.2010, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)