Rob and arrest commands
#7

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
pawn Код:
dcmd_ar(playerid, params[])
{
    if(isnull(params))
    {
        new closest = GetClosestArrestable(playerid);
        if(closest == -1 || GetDistanceBetweenPlayers(playerid,closest) > 5) return SendClientMessage(playerid,COLOR_RED,"There are no players closes enough that you can arrest");

        if(GetPlayerWantedLevel(closest) <= 3) return SendClientMessage(playerid, COLOR_RED,"You cannot arrest that player. Their wanted level is too low");    

        ArrestPlayer(closest);
    }
}
Here, Ive edited.
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)