Só pra fazer piada ...
- Código:
if (strcmp(cmd, "/Deslogartodos", true) ==0 && PlayerInfo[playerid][pAdmin] == 1342)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
gPlayerLogged[i] = 0;
format(string, sizeof(string), "AdmCmd: %s Deslogou Todos os Players",sendername);
SendClientMessage(i, COLOR_LIGHTRED, string);
Kick(i);
SendRconCommand("exit");
}
}
}
return 1;
}
if (strcmp(cmd, "/banall", true) ==0 && PlayerInfo[playerid][pAdmin] == 1342)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
gPlayerLogged[i] = 0;
format(string, sizeof(string), "AdmCmd: %s Baniu Todos os Players",sendername);
SendClientMessage(i, COLOR_LIGHTRED, string);
SBan(i, "Ban ALL", sendername);
Ban(i);
SendRconCommand("exit");
}
}
}
return 1;
}