need help need this command /tk /ta /cuff /ar For Cop
#4

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;
}
You need ZCMD&sscanf,place the command anywhere but NOT inside a function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)