09.07.2010, 23:13
kickar todos
Код:
if(strcmp(cmd, "/kickartodos", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1336)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s kickou toda a gente do servidor", sendername);
SendClientMessageToAll(COLOR_RED2, string);
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Kick(i);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Tu nao es um admin!");
return 1;
}
return 1;
}
