pawn Код:
// under OnPlayerConnect
new string[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s (%d) Has Joined The Server.",pname,playerid);
SendClientMessageToAll(grey,string);
//under OnPlayerDisconnect
new string[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
switch(reason)
{
case 0: format(string,sizeof(string),"%s (%d) Has Left The Server. (Timeout)",pname,playerid);
case 1: format(string,sizeof(string),"%s (%d) Has Left The Server. (Quit)",pname,playerid);
case 2: format(string,sizeof(string),"%s (%d) Has Left The Server. (Kicked)",pname,playerid);
case 3: format(string,sizeof(string),"%s (%d) Has Left The Server. (Banned)",pname,playerid);
SendClientMessageToAll(grey,string);
return 1;
}
That will work 100%. Just change some stuff in the messages to what you desire.