27.08.2011, 09:49
Put this:
Код:
public OnPlayerConnect(playerid) { playersconnected++; SendClientMessage(playerid, 0xFF8000FF, "Welcome to the test server!"); new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected); SendClientMessageToAll(0xFF8000FF, string); return 1; } public OnPlayerDisconnect(playerid, reason) { playersconnected--; new string[128]; format (string, sizeof(string), "There are currently %i players in the server (Including you)", playersconnected); SendClientMessageToAll(0xFF8000FF, string); return 1;