PHP код:
forward ChatBubble();
public ChatBubble()
{
for(new i = 0, j = GetPlayerPoolSize(); i <= j; ++i)
{
if(IsPlayerConnected(i))
{
switch (GetPlayerScore(i))
{
case 0..6: SetPlayerChatBubble( i, "Jogador", 0x1100FFFF, 100.0, 2000 );// se tiver score 0 atй 6
case 7..12: SetPlayerChatBubble( i, "Helper", 0x1100FFFF, 100.0, 2000 ); // se tiver score 7 atй 12
case 13..20: SetPlayerChatBubble( i, "Moderador(a)", 0x2DF0A2FF, 100.0, 2000 ); // se tiver score 13 atй 20
case 21..31: SetPlayerChatBubble( i, "Administrador(a)", 0x00C40DFF, 100.0, 2000 );//se tiver score 21 atй 31
default: SetPlayerChatBubble( i, "Diretor(a)", 0xFF9900FF, 100.0, 2000 );// score de 31 em diante
}
}
}
}