Crie esse comando usando loop e quero que a função seja executada para todos, menos o playerid (Jogador que digitou o comando)
Código PHP:
CMD:matarp(playerid)
{
new Float:Pos[3]; GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
foreach(new i: Player)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0],Pos[1],Pos[2]))
{
SetPlayerHealth(i, 0);
format(Str,sizeof(Str),"Admin: %s matou todos jogadores perto dele",PlayerName(playerid));
Msg(i,-1,Str);
}
}
return 1;
}
Deixa ela comigo!