[Ajuda] OnPlayerConnect
#1

Galera queria exibir algumas mensagens quando o VIP conectar no servidor. Entгo fiz esse codigo

pawn Код:
if ( !IsPlayerVIP(playerid))
    {
        format(string, sizeof(string), "{D7D7D7}O Jogador Vip {00FFFF}%s{D7D7D7} (ID: {00FFFF}%i{D7D7D7}){00FF00} Entrou{D7D7D7} no Servidor. Estado: %s.", Nome_Player, playerid, estado);
        SendClientMessageToAll(0xFF0000FF, string);
        SendClientMessage(playerid, -1, "{FF0000}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        SendClientMessage(playerid, -1, "");
        SendClientMessage(playerid, -1, "                  Seja Bem Vindo             ");
        SendClientMessage(playerid, -1, "");
        SendClientMessage(playerid, -1, "{FF0000}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        SendClientMessage(playerid, 0xFF0000FF, "-  {a9c4e4}Administrador: {FF0000}Nгo");
        new DName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,DName,sizeof(DName));
        SendClientMessage(playerid, 0xFF0000FF, "-  {a9c4e4}Player VIP: {FF0000}Sim");
        return 0;
    }
No meu sistema de Vip a variavel й essa
pawn Код:
if ( !IsPlayerVIP(playerid))
Porйm quando um player normal entra aparece que ele й vip, e se entra um vip aparece que nгo.

O Mesmo acontece com a TAG Vip no Chat.
pawn Код:
if ( !IsPlayerVIP(playerid))
    {
        SetPlayerChatBubble(playerid, text, 0xFFFDE8AA, 100.0, 10000);
        format(MessageText, sizeof(MessageText), "(ID:%d){40FF00}[VIP]: {FFFFFF}%s", playerid, text);
        SendPlayerMessageToAll(playerid, MessageText);
        new u[26];
        GetPlayerName(playerid, u, 24);
        format(MsgText, sizeof(MsgText), "(ID:%d) %s : %s", u, playerid, text);
        EscreverLog("ChatGlobal", MsgText);
    }
Alguem me ajuda?
Reply


Messages In This Thread
OnPlayerConnect - by GHLEMES - 13.06.2014, 20:37
Re: OnPlayerConnect - by Dolby - 13.06.2014, 21:00
Re: OnPlayerConnect - by Cor3y - 13.06.2014, 21:01
Re: OnPlayerConnect - by GHLEMES - 13.06.2014, 21:13
Re: OnPlayerConnect - by Dolby - 13.06.2014, 21:19
Re: OnPlayerConnect - by GHLEMES - 14.06.2014, 01:10
Re: OnPlayerConnect - by PT - 14.06.2014, 12:52
Re: OnPlayerConnect - by GHLEMES - 14.06.2014, 18:45
Re: OnPlayerConnect - by GHLEMES - 14.06.2014, 21:44
Re: OnPlayerConnect - by PT - 14.06.2014, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)