12.07.2013, 18:17
pawn Код:
public OnPlayerConnect(playerid) {
new s[128], p[MAX_PLAYER_NAME];
GetPlayerName(playerid, p, sizeof p);
format(s, sizeof s, "| %s(%d) entrou no servidor.", p, playerid);
SendClientMessageToAll(0xBEBEBEFF, s);
return true;
}
public OnPlayerDisconnect(playerid, reason) {
new s[128], p[MAX_PLAYER_NAME];
GetPlayerName(playerid, p, sizeof p);
switch(reason) {
case 0: format(s, sizeof s, "| %s(%d) caiu do servidor. (Problemas de Conexгo)", p, playerid);
case 1: format(s, sizeof s, "| %s(%d) saiu do servidor. (Conta Prуpria)", p, playerid);
case 2: format(s, sizeof s, "| %s(%d) foi kickado/banido do servidor. (Kickado/Banido)", p, playerid);
}
SendClientMessageToAll(0xBEBEBEFF, s);
return true;
}
Ah Luigi, kk'