22.07.2018, 03:36
os chats Bubble estгo todos corretos, apenas as cores no querem setar!
PHP код:
public OnPlayerUpdate(playerid)
{
if(pInfo[playerid][Ajudante] == true)
{
SetPlayerChatBubble(playerid, "Ajudante(a)", 0xFF00FFAA, 100.0, 10000);
SetPlayerColor(playerid, 0xFF00FFAA);
}
if(pInfo[playerid][Moderador] == true)
{
SetPlayerChatBubble(playerid, "Moderador(a)", 0x008000AA, 100.0, 10000);
SetPlayerColor(playerid, 0x008000AA);
}
if(pInfo[playerid][Corregedor] == true)
{
SetPlayerChatBubble(playerid, "Corregedor(a)", 0x00FFFFAA, 100.0, 10000);
SetPlayerColor(playerid, 0x00FFFFAA);
}
if(pInfo[playerid][Administrador] == true)
{
SetPlayerChatBubble(playerid, "Administrador(a)", 0xFF0000AA, 100.0, 10000);
SetPlayerColor(playerid, 0xFF0000AA);
}
if(pInfo[playerid][Master] == true)
{
SetPlayerChatBubble(playerid, "Administrador(a)", 0x800000AA, 100.0, 10000);
SetPlayerColor(playerid, 0x800000AA);
}
if(GetPlayerScore(playerid) < 5)
{
SetPlayerColor(playerid, 0xFF8000AA);
SetPlayerChatBubble(playerid, "Novato(a)", 0xFF8000AA, 100.0, 10000);
}
if(GetPlayerScore(playerid) >= 5)
{
SetPlayerColor(playerid, 0xFFFFFFAA);
}
return 1;
}