command without id
#5

My bad, mis-read it.

pawn Код:
if(!strcmp(cmdtext,"/tk",true))
{
  if(!IsPlayerCop(playerid)) return SendClientMessage(playerid,0x0000ff00,"You aint a cop!");
  new Float:x,Float:y,Float:z;
  GetPlayerPos(playerid,x,y,z);
  for(new i; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,5,x,y,z) && !IsPlayerCop(i))
    {
       //Ticket code
       return 1;
    }
  }
  return SendClientMessage(playerid,0x00ff00,"You aren't near a player!");
}
Reply


Messages In This Thread
command without id - by Smokey619 - 27.07.2010, 18:27
Re: command without id - by Smokey619 - 27.07.2010, 19:28
Re: command without id - by Hiddos - 27.07.2010, 19:40
Re: command without id - by [MNC]Azz - 27.07.2010, 19:53
Re: command without id - by Hiddos - 27.07.2010, 19:57
Re: command without id - by DRIFT_HUNTER - 27.07.2010, 20:10
Re: command without id - by Smokey619 - 27.07.2010, 20:31
Re: command without id - by DJDhan - 27.07.2010, 20:47

Forum Jump:


Users browsing this thread: 2 Guest(s)