AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Action Nades BM! (https://forums.alliedmods.net/showthread.php?t=135453)

furka 08-16-2010 12:20

[HELP] Action Nades BM!
 
I have a error in my code of nades in my block blockmaker.
The error is: When I have a nade on my hand and I jump on the respective block for I take a new HE, Flash or Frost, I need wait the next round cause the block say: Only 1 Nade for round. O_o
Thats the error. When i have a nade and i go to the block take a new he with the nade on my hand, the block dont leave me take a new nade!
HELP ME PLZ!!!


Code:
PHP Code:

actionHE(idOverrideTimer)
{
    
//get game time
    
new Float:fTime halflife_time();
 
    
//make sure player is alive
    
if (fTime >= gfHENextUse[id] || OverrideTimer)
    {
        
//ID HE
        
give_item(id"weapon_hegrenade");
        {
            
//omg
        
}
 
        
//set the time when the player can use the nuke again (someone might have been invincible)
        
gfHENextUse[id] = fTime get_cvar_float("bm_hecooldown");
 
        
//setup hud message to show who nuked what team
        
set_hudmessage(2552550, -1.00.3506.010.01.01.0);
 
    }
    else
    {
        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
        
show_hudmessage(id"HE GRENADE BLOCK NEXT USE AFTER 1 ROUND"gfHENextUse[id] - fTime);
    }


What I need put in my code for arrange this?
I NEED HELLLLLP!

Sorry for my bad english!

kungfu 08-10-2013 08:42

Re: [HELP] Action Nades BM!
 
set the time when the player can use the nuke again (someone might have been invincible)

edit fov


All times are GMT -4. The time now is 22:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.