[Ajuda] Ifinito
#1

Achei um fs de lanзador de granadas й ele so atira 1 granada e depois tem que esperar recarregar a muniзao pra atirar a granada de novo como faзo pra deixar inifinito ? й trocar de tecla alt por um comando me ajudem por favor

Link
http://forum.sa-mp.com/forumdisplay.php?f=17
Reply
#2

Se for esse: https://sampforum.blast.hk/showthread.php?tid=220943
Basta remover o que estб em comentбrio // /* */
PHP код:
//new GrenadeReload[MAX_PLAYERS];
 
if(newkeys KEY_FIRE)
        {
        if(
/*GrenadeReload[playerid] == 1 &&*/ GetPlayerWeapon(playerid) == 31 && GrenadeArmed[playerid] == 1)
        {
                               
// GrenadeReload[playerid] = 0; REMOVA ISSO TAMBEM
                                
SetTimerEx("ReloadGrenade",5*1000,false,"i",playerid);
                            new 
Float:nadexFloat:nadeyFloat:nadezFloat:angle;
                                
GetPosFromView(playeridDistancenadexnadeynadez);
                                
GetPlayerFacingAngle(playeridangle);
                                
CreateExplosion(nadex,nadey,nadez01.0);
                                }
                                }
return 
1;
}
stock GetPosFromView(playeridFloat:distance, &Float:x, &Float:y, &Float:z)
{
    new 
Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
    
GetPlayerCameraPos(playeridcxcycz);
    
GetPlayerCameraFrontVector(playeridfxfyfz);
    
fx distance cx;
    
fy distance cy;
    
fz distance cz;
}
/*forward ReloadGrenade(playerid);
public ReloadGrenade(playerid)
{
        GrenadeReload[playerid] = 1;
        SendClientMessage(playerid,RED,"Your grenade launcher has been reloaded!");
        return 1;
}*/ 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)