12.07.2013, 19:45
pawn Код:
CMD:explodeall(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
foreach(new i : Player)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
SendFMessage(i, -1, "%s %s has exploded all players online!", GetAdminLevel(playerid), Name(playerid));
}
}
else
{
SendClientMessage(playerid, -1, NO_PERM);
}
return 1;
}