[Ajuda] Batercartao
#1

Ola na hq da fa eu do /batercartao ai equipa normal sу q eu do /batercartao denovo equipa e fala que tem q espera 20 segundos .. mais n precisa espera nada pode floda no /batercartao eu keria tira essa parte
PHP код:
if(GetTickCount() - AntiFlood[playerid][5] < 20000
        { 
             
format(thestring128"[ERRO] Vocк precisa esperar %d segundos para usar esse comando novamente!",20-(GetTickCount() - AntiFlood[playerid][5])/1000); 
            
SendClientMessage(playeridCOLOR_GREYthestring); 
mais eu tiro e da um erro arrumen pra min pf :
PHP код:
else if(Player[playerid][pMember] == TEAM_BOPE)
        {
            if(
PlayerToPoint(3playerid,241.2734,121.9725,1003.3057))
            {
                if(
OnDuty[playerid]==0)
                {
                      
format(thestringsizeof(thestring), "O oficial %s pegou seus equipamentos e distintivo."Player[playerid][pName]);
                    
ProxDetector(30.0playeridthestringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
SafeGivePlayerWeapon(playerid45);
                    
SafeGivePlayerWeapon(playerid24400);
                    
SafeGivePlayerWeapon(playerid31800);
                    
SafeGivePlayerWeapon(playerid3135);
                    
SetPlayerArmour(playerid90);
                    
SetPlayerSkin(playerid285);
                    
Player[playerid][pModel] = GetPlayerSkin(playerid);
                    
OnDuty[playerid] = 1;
                }
                else if(
OnDuty[playerid]==1)
                {
                    
format(thestringsizeof(thestring), "O oficial %s devolveu seus equipamentos e distintivo."Player[playerid][pName]);
                    
ProxDetector(30.0playeridthestringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк recebeu sua arma pessoal de volta.");
                    
ResetPlayerWeapons(playerid);
                    
SetPlayerArmour(playerid0);
                    
SafeGivePlayerWeapon(playerid2421);
                    
OnDuty[playerid] = 0;
                }
            }
            else
                return 
SendClientMessage(playeridCOLOR_RED,"[ERRO] Vocк nгo estб no vestiбrio!");
        }
        if(
GetTickCount() - AntiFlood[playerid][5] < 20000)
        {
             
format(thestring128"[ERRO] Vocк precisa esperar %d segundos para usar esse comando novamente!",20-(GetTickCount() - AntiFlood[playerid][5])/1000);
            
SendClientMessage(playeridCOLOR_GREYthestring);
            return 
1;
            } 
Reply
#2

retire
pawn Код:
if(GetTickCount() - AntiFlood[playerid][5] < 20000)
{
    format(thestring, 128, "[ERRO] Vocк precisa esperar %d segundos para usar esse comando novamente!",20-(GetTickCount() - AntiFlood[playerid][5])/1000);
    SendClientMessage(playerid, COLOR_GREY, thestring);
}
LOL
Reply
#3

Vlw consegui
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)