14.02.2013, 19:12
Add the SendClientMessageToAll outside of the "switch(reason)".
pawn Код:
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Timeout){CCCCCC}:.", name);
case 1: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Leaving){CCCCCC}:.", name);
case 2: format(string, sizeof string, "{FFFFFF}%s {CCCCCC}has left the server. .:{FFFFFF}(Kicked/Banned){CCCCCC}:.", name);
}
SendClientMessageToAll(-1, string);