24.02.2009, 21:36
I was wondering, How would i make a function that Would kick all players if a Admin does /kickall, And hes rank ... 6 admin for example?
Thanks alot!
Thanks alot!
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/kickall",true) == 0)
{
if (player admin level < 6)
return 1;
for (new i = 0; i < MAX_PLAYERS; i++)
kick(i);
return 1;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext,"/kickall",true) == 0) { for (new i = 0; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i) && player_admin_level < 6) Kick(i); return 1; } return 0; }