24.12.2011, 11:53
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s left the server [crash].", pname);
case 1: format(string, sizeof(string), "%s left the server [/q].", pname);
case 2: format(string, sizeof(string), "%s left the server [kick/ban]", pname);
}
SendClientMessageToAll(0xFFFFFFAA, string);
return 1;
}