01.02.2012, 09:56
(
Последний раз редактировалось MP2; 01.02.2012 в 10:34.
)
pawn Код:
new player_count; // OUTSIDE ALL CALLBACKS
public OnPlayerConnect(playerid)
{
player_count++;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
player_count--;
return 1;
}
// To show the message:
new sPlay[64];
format(sPlay, sizeof(sPlay), "%i/%i players online.", player_count, GetMaxPlayers());
SendClientMessageToAll(COLOR_GREY, sPlay);