How would I
#1

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!
Reply
#2

pawn Код:
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;
}
something like that
Reply
#3

Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)