02.04.2010, 18:58
If a player connects,how i can add such a stuff that it will say like this: %s has joined the server.(Total players online: OnLinePlayersNumbers)
stock GetOnlinePlayers()
{
new count,g=GetMaxPlayers();
for(new d; d<g; d++) if(IsPlayerConnected(d) && !IsPlayerNPC(d)) count++;
return count;
}
new Online = GetOnlinePlayers(); %s has joined the server.(Total players online: %d),Nick,Online);
|
Originally Posted by Jefff
Top
Код:
stock GetOnlinePlayers()
{
new count,g=GetMaxPlayers();
for(new d; d<g; d++) if(IsPlayerConnected(d) && !IsPlayerNPC(d)) count++;
return count;
}
Код:
new Online = GetOnlinePlayers(); %s has joined the server.(Total players online: %d),Nick,Online); |
format(string, sizeof string, "%s has joined the server.(Total players online: %d),Nick, GetOnlinePlayers());