21.01.2015, 03:58
pawn Код:
if(strcmp("/quemartodos", cmd, true, 10) == 0){
if(PlayerInfo[playerid][pAdmin] >= 2){
#define COLOR_QUEMAR 0xFF0000FF
new
name[25],
Float:pos[3],
data[144];
GetPlayerName(playerid,name,sizeof(name));
for(new user=0; user<GetMaxPlayers(); user++){
if(!IsPlayerConnected(user))continue;
if(IsPlayerNPC(user)continue;
if(user==playerid)continue;
GetPlayerPos(user, pos[0],pos[1],pos[2]);
CreateExplosion(pos[0],pos[1],pos[2] + 3, 1, 10);
}
format(data,sizeof(data),"el admin %s se puso loco y quemo a todos matenlo al hijo de puta",name);
SendClientMessageToAll(COLOR_QUEMAR, data);
} else SendClientMessage(playerid,-1, "no eres administrador");
return true;
}