28.10.2012, 06:12
PHP код:
#include <a_samp>
#define ORANGE 0xF97804FF
new Players;
public OnPlayerConnect(playerid)
{
Players++;
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "*** %s has joined the server. Total Players: %d", pName, Players);
SendClientMessageToAll(ORANGE, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Players--;
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "*** %s has left the server. Total Players: %d", pName, Players);
SendClientMessageToAll(ORANGE, string);
return 1;
}