#4

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
PHP код:
new onlinePlayers;
public 
OnPlayerConnect(playerid)
{
    
onlinePlayers++;
    return 
1;
}
public 
OnPlayerDisconnect(playerid)
{
     
onlinePlayers--;
     return 
1;
}
CMD:players(playeridparams[])
{
    new 
string[128];
    
format(stringsizeof(string), "Online players: %d"onlinePlayers);
    
SendClientMessage(playerid, -1string);
    return 
1;

You looking for something like this?
yes but it's better if it a function to getplayeronserver
Reply


Messages In This Thread
help - by TYDS - 06.06.2017, 03:09
Re: help - by Toroi - 06.06.2017, 03:16
Re: help - by Kane - 06.06.2017, 03:18
Re: help - by TYDS - 06.06.2017, 03:20
Re: help - by DaniceMcHarley - 06.06.2017, 03:27
Re: help - by TYDS - 06.06.2017, 03:30
Re: help - by Kane - 06.06.2017, 03:36
Re: help - by TYDS - 06.06.2017, 03:38
Re: help - by SyS - 06.06.2017, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)