06.06.2017, 03:18
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;
}