[QUESTION] Checking for if someone is offline
#2

pawn Код:
new adminson = 0;
for(new i = 0; i < MAX_PLAYERS; i ++ ) {
  if(IsPlayerConnected(i)) {
    if(IsPlayerAdmin(i)) {
      adminson ++;
    }
  }
}
if(adminson == 0 ) {
  print("Your code here if there's no admins on");
}
Reply


Messages In This Thread
[QUESTION] Checking for if someone is offline - by CuervO - 07.04.2010, 00:43
Re: [QUESTION] Checking for if someone is offline - by Carlton - 07.04.2010, 00:48
Re: [QUESTION] Checking for if someone is offline - by CuervO - 07.04.2010, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)