31.03.2017, 01:53
PHP код:
SetTimer("AtualizarChatBubble", 1000, true); //Junto com os Timers em OnGamemodeInit
forward AtualizarChatBubble(); //FINAL DO GAMEMODE
public AtualizarChatBubble()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(Player[x][pAdmin] >= 6)
{
SetPlayerChatBubble(x, "Dono do Servidor", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pAdmin] >= 5)
{
SetPlayerChatBubble(x, "Game Master", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pAdmin] >= 4)
{
SetPlayerChatBubble(x, "Sub Game Master", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pAdmin] >= 3)
{
SetPlayerChatBubble(x, "Administrador Fixo", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pAdmin] >= 2)
{
SetPlayerChatBubble(x, "Administrador Avanзado", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pAdmin] >= 1)
{
SetPlayerChatBubble(x, "Administrador Temporбrio", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pLider] >= 1)
{
SetPlayerChatBubble(x, "Lнder Facзгo", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pDM] >= 1)
{
SetPlayerChatBubble(x, "Dono do Morro", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pFrente] >= 1)
{
SetPlayerChatBubble(x, "Frente", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pGerente] >= 1)
{
SetPlayerChatBubble(x, "Gerente", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pVapor] >= 1)
{
SetPlayerChatBubble(x, "Vapor", COR_AZUL, 100.0, 100000);
}
else if(Player[x][pFogueteiro] >= 1)
{
SetPlayerChatBubble(x, "Fogueteiro", COR_AZUL, 100.0, 100000);
}
}
}