[Ajuda] Como arrumar isso?
#1

PHP Code:
public TimeWarFinish(playerid)
{
    for(new 
i;i<MAX_PLAYERS;i++)
        {
            if(
LiberarDominio[i] == 1){
                
LiberarDominio[i] = 0;}
        }
        
GangZoneStopFlashForAll(LocalGuerra);
        
TextDrawHideForAll(PlacarGuerra);
        if(
KillerEx KillerAl)
        {
                
SendClientMessageToAll(0xFF8000FF,"POLICIA WINS COMO SEMPRE");
                
GameTextForAll("~g~POLICIAIS VENCERAM"3000);
                for(new 
getorg;getorg<MAX_PLAYERS;getorg++)
                {
                        if (
DataP[playerid][PlayerProfissao] == ClassePolicia)
                        {
                        
SendClientMessage(getorg,GetPlayerColor(getorg),"RECOMPENSA FOI OBTIDA");
                        }
                }
        } 
Simplesmente todas as mensagens como:

SendClientMessageToAll(0xFF8000FF,"POLICIA WINS COMO SEMPRE")
GameTextForAll("~g~POLICIAIS VENCERAM", 3000, 0 );
SendClientMessage(getorg,GetPlayerColor(getorg),"R ECOMPENSA FOI OBTIDA");

estгo aparecendo vбrias vezes. o que pode ser? й para aparecer apenas uma vez!
Reply
#2

A funзгo esta sendo chamada apartir de um timer?
Reply
#3

Sim.. apуs 10 minutos a guerra se encerra e chama essa funзгo.
Reply
#4

No seu GM deve ter um SetTimer("TimeWarFinish", Tempo, true);
no lugar do true coloque false!
Reply
#5

nгo tem :/
Reply
#6

Substitua:
pawn Code:
SetTimerEx("TimeWarFinish", 600000, true, "i", playerid);
Por:

pawn Code:
SetTimerEx("TimeWarFinish", 600000, false, "i", playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)