Вход. public OnPlayerConnect(playerid)
{
new string[85],pname[24];
GetPlayerName(playerid,pname,24);
format(string,sizeof(string),\\\\\\\"*** %s присоединелся . (ID:%d)\\\\\\\",pname,playerid);
SendClientMessageToAll(COLOR_CON_GREEN,string);
return 1;
}
Выход и прочие.
public OnPlayerDisconnect(playerid, reason)
{
new string[85],pname[24];
switch (reason)
{
case 0:
{
GetPlayerName(playerid,pname,24);
format(string,sizeof(string), \\\\\\\"*** %s вылетел с сервера.(ID:%d)\\\\\\\",pname,playerid);
SendClientMessageToAll(COLOR_DIS_RED,string);
}
case 1:
{
GetPlayerName(playerid,pname,24);
format(string,sizeof(string), \\\\\\\"*** %s решил уйти . (ID:%d)\\\\\\\",pname,playerid);
SendClientMessageToAll(COLOR_DIS_RED,string);
}
case 2:
{
GetPlayerName(playerid,pname,24);
format(string,sizeof(string), \\\\\\\" %s кикнут (ID:%d)\\\\\\\",pname,playerid);
SendClientMessageToAll(COLOR_DIS_RED,string);
}
}
return 1;
}
цвета:
#define COLOR_CON_GREEN 0x00FF00FF
#define COLOR_DIS_RED 0xFF0000FF