[Ajuda] Conectar e disconectar
#3

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;
}
@EDIT
Ah Luigi, kk'
Reply


Messages In This Thread
Conectar e disconectar - by minimessi10 - 12.07.2013, 18:03
Re: Conectar e disconectar - by WLSF - 12.07.2013, 18:13
Re: Conectar e disconectar - by Miqueias Barros - 12.07.2013, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)