In need
#6

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
lol well, anyone wanna tell me how to use this right? xD
Sure.

Parameters:
(playerid)

If ID 1 is next to ID 0, and you are ID 0, using this function would return 1.
"GetClosestPlayer(playerid);"
Returns: ID 1.

pawn Код:
COMMAND:taze(playerid, params[])
{
    if(File[playerid][Faction] == 1)
    {
        GameTextForPlayer(GetClosestPlayer(playerid), "~r~Tazed!", 1000, 1);
        TogglePlayerControllable(GetClosestPlayer(playerid), 0);
    }
    return 1;
}
Reply


Messages In This Thread
In need - by willsuckformoney - 09.08.2010, 01:50
Re: In need - by Kayla.S - 09.08.2010, 01:52
Re: In need - by Kar - 09.08.2010, 01:55
Re: In need - by Kayla.S - 09.08.2010, 01:56
Re: In need - by willsuckformoney - 09.08.2010, 02:00
Re: In need - by (.Aztec); - 09.08.2010, 02:30
Re: In need - by willsuckformoney - 09.08.2010, 02:37
Re: In need - by (.Aztec); - 09.08.2010, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)