Quote:
Originally Posted by Arthur Kane
PHP код:
new onlinePlayers;
public OnPlayerConnect(playerid)
{
onlinePlayers++;
return 1;
}
public OnPlayerDisconnect(playerid)
{
onlinePlayers--;
return 1;
}
CMD:players(playerid, params[])
{
new string[128];
format(string, sizeof(string), "Online players: %d", onlinePlayers);
SendClientMessage(playerid, -1, string);
return 1;
}
You looking for something like this?
|
yes but it's better if it a function to getplayeronserver