[Ajuda] Ifinito
#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


Messages In This Thread
Ifinito - by SatanMessenger - 01.10.2014, 11:40
Re: Ifinito - by Skiinner - 01.10.2014, 11:47

Forum Jump:


Users browsing this thread: 2 Guest(s)