[HELP] Checking for player with something parameters
#5

Learn the basics first

Go to the Samp wiki and search for:

SetTimer
SendClientMessage
format

Also :


Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Okay...well you would need a timer OnGameModeInit like so:

pawn Код:
SetTimer("CheckAdmins",60000,true); // Run the CheckAdmins function every 60 seconds
Then make a new public function for CheckAdmins like:

pawn Код:
public CheckAdmins()
{
    new adminsonline = 0;
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i)) adminsonline++;
    }
   
    if(adminsonline == 0) SendClientMessageToAll(color,"No admins are online");
    return 1;
}
Could help you out a bit
Reply


Messages In This Thread
[HELP] Checking for player with something parameters - by Pooh7 - 10.10.2010, 19:22
Re: [HELP] Checking for player with something parameters - by JaTochNietDan - 10.10.2010, 19:35
Re: [HELP] Checking for player with something parameters - by Pooh7 - 10.10.2010, 19:41
Re: [HELP] Checking for player with something parameters - by JaTochNietDan - 10.10.2010, 19:47
Re: [HELP] Checking for player with something parameters - by Cameltoe - 10.10.2010, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)