29.07.2018, 16:44
Queria saber pq meus setplayerchatbuble setam no player com cargo e meu setplayercolor nao, nгo sei o pq, mas me ofereceram para usar foreach e a y_timers mas como sou novato quero comeзar pelo os primeiros passos do pawno ainda!
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)
{
SetPlayerChatBubble(playerid, "Novato(a)", 0xFF8000AA, 100.0, 10000), SetPlayerColor(playerid, 0xFF8000AA);
}
if(GetPlayerScore(playerid) >= 5)
{
SetPlayerColor(playerid, 0xFFFFFFAA);
}
if(IsPlayerAdmin(playerid))
{
SetPlayerColor(playerid, 0x800000AA);
}
return 1;
}