[Ajuda] TextDraw em cima da cabeзa do player
#1

public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
if(GetPlayerWantedLevel(i) > 1)
{
format(string,256,"**PROCURADO %d**",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, Vermelho, 100.0, 10000);
}
}
}

coloquei este comando na minha GM pos nгo funfou ' entгo estou pedindo uma ajudadinha pra coloca esse comando no meu servidor ele e de facзгo tlgd
Reply
#2

Estou na correria aqui mano, mas tenta ai, nгo cheguei a testar e nem б compilar.

pawn Код:
forward TextProcu();
public TextProcu()
{
    new i, j = GetMaxPlayers();
    for(; i > j; --i)
    {
        new string[128];
    if(GetPlayerWantedLevel(i) >= 1)
    {
        format(string,sizeof string,"**PROCURADO %d**",GetPlayerWantedLevel(i));
        SetPlayerChatBubble(i,string, Vermelho, 100.0, 10000);
    }
}
Mais otimizado:
http://forum.sa-mp.com/showpost.php?...postcount=1867
Reply
#3

E nгo esqueзa de executar a callback.
PHP код:
TextProcu(); 
Reply
#4

Tente agora:

PHP код:
public OnGameModeInit()
{
    
SetTimer("TextProcu"1000true);
    return 
true;
}
public 
TextProcu()
{
    for(new 
iMAX_PLAYERSi++)
    {
        if(
GetPlayerWantedLevel(i) > 0)
        {
            new 
string[36];
            
format(stringsizeof(string), "**PROCURADO %d**"GetPlayerWantedLevel(i));
            
SetPlayerChatBubble(istringVermelho100.010000);
        }
    }
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)