like that?
Code:
actionFlash(id, OverrideTimer)
{
//get game time
new Float:fTime = halflife_time();
//make sure player is alive
if (fTime >= gfFlashNextUse[id] || OverrideTimer)
{
if (cs_get_user_team(id) != CS_TEAM_T)
return;
{
give_item(id, "weapon_flashbang");
{
//omg
}
//set the time when the player can use the nuke again (someone might have been invincible)
gfFlashNextUse[id] = fTime + get_cvar_float("bm_flashcooldown");
//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, "FLASH BLOCK NEXT USE AFTER 1 ROUND", gfFlashNextUse[id] - fTime);
}
}
didnt work also