15.04.2012, 13:32
pawn Код:
COMMAND:ta(playerid,params[])
{
new playerid2;
if(sscanf(params,"u",playerid2)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/ta [ID]");
new Float:x,Float:y,FLoat:z;
GetPlayerPos(playerid2,x,y,z);
if(!IsPlayerInRangeOfPoint(playerid,5.0,x,y,z)) return SendClientMessage(playerid,COLOR_RED,"Player isn't close enough!");
else
{
TogglePlayerControllable(playerid2,0);
SendClientMessage(playerid,COLOR_BLUE,"Player tazed!");
SendClientMessage(playerid2,COLOR_RED,"You have been tazed!");
}
return 1;
}