13.12.2015, 14:46
PHP код:
CMD:det(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "Error: You are not authorized to use this command.");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new I = 0; I < MAX_PLAYERS; I++)
{
if(!IsPlayerConnected(I))
continue;
if(I == playerid)
continue;
if(IsPlayerInRangeOfPoint(I, 15.0, x, y, z))
SetPlayerHealth(I, 0);
}
return 1;
}

