27.07.2010, 19:57
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!");
}