[Ajuda] OnPlayerDisconnect
#1

Eu coloquei um mensagem ao player sair do server, kick ban, conta propria, crash mais qndo eu coloco muito grande o frase corta alguem me ajuda ?
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        szString[64],
        name[MAX_PLAYER_NAME];

    GetPlayerName(playerid, name, MAX_PLAYER_NAME);

    switch(reason)
    {
        case 0: format(szString, sizeof(szString), "%s saiu do servidor por erro de conexгo ou crash", name);
        case 1: format(szString, sizeof(szString), "%s saiu do servidor por vontade propria", name);
        case 2: format(szString, sizeof(szString), "%s Saiu do servidor kickado ou banido", name);
    }

    SendClientMessageToAll(0xC4C4C4FF, szString);
Reply


Messages In This Thread
OnPlayerDisconnect - by Speedpz - 28.08.2013, 18:57
Re: OnPlayerDisconnect - by Mteck - 28.08.2013, 19:20
Re: OnPlayerDisconnect - by PT - 28.08.2013, 20:27

Forum Jump:


Users browsing this thread: 2 Guest(s)