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(id, OverrideTimer)
{
//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(255, 255, 0, -1.0, 0.35, 0, 6.0, 10.0, 1.0, 1.0);
}
else
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
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!