22.02.2012, 21:41
Estou a criar setplayerchatbubble para adminstradores so que , ele nao esta aparecendo tem algo errado?
pawn Код:
SetTimer("CoisasADM", 1000, true);
public CoisasADM()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, MAX_PLAYER_NAME);
format(a_phile1, sizeof(a_phile1), DIRETORIO, pname);
SetPlayerScore(i,DOF2_GetInt(a_phile1, "Level")); // Setando score p/ level ;D
if(pAdmin[i] >= 1 && pAdmin[i] <= 5)
{
if(pAdmin[i] == 1)
{
SetPlayerChatBubble(i, "~> Moderador <~", 0x8080FFFF, 100.0, 10000);
}
if(pAdmin[i] == 2)
{
SetPlayerChatBubble(i, "~> Sub-Admin <~", 0x8080FFFF, 100.0, 10000);
}
if(pAdmin[i] == 3)
{
SetPlayerChatBubble(i, "~> Admin <~", 0x8080FFFF, 100.0, 10000);
}
if(pAdmin[i] == 4)
{
SetPlayerChatBubble(i, "~> Sub-Dono <~", 0x8080FFFF, 100.0, 10000);
}
if(pAdmin[i] == 5)
{
SetPlayerChatBubble(i, "~> Dono <~", 0x8080FFFF, 100.0, 10000);
}
}
else {
if(GetPlayerWantedLevel(i) > 0)
{
format(string,256,"~> Procurado Nivel %d <~",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, Vermelho, 100.0, 10000);
}
}
}
}