09.08.2010, 02:30
Quote:
|
lol well, anyone wanna tell me how to use this right? xD
|
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;
}


