13.06.2014, 20:37
Galera queria exibir algumas mensagens quando o VIP conectar no servidor. Entгo fiz esse codigo
No meu sistema de Vip a variavel й essa
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.
Alguem me ajuda?
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;
}
pawn Код:
if ( !IsPlayerVIP(playerid))
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);
}