Raised This Month: $ Target: $400
 0% 

how to give an item only to Teror?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-04-2009 , 12:10   Re: how to give an item only to Teror?
Reply With Quote #1

No.
PHP Code:
actionFlash(idOverrideTimer)
{
    if (
cs_get_user_team(id) != CS_TEAM_T)
        return;
 
    
//get game time
    
new Float:fTime halflife_time();
 
    
//make sure player is alive
    
if (fTime >= gfFlashNextUse[id] || OverrideTimer)
    {
        
give_item(id"weapon_flashbang");
 
        
//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(2552550, -1.00.3506.010.01.01.0);
 
    }
    else
    {
        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
        
show_hudmessage(id"FLASH BLOCK NEXT USE AFTER 1 ROUND"gfFlashNextUse[id] - fTime);
    }

__________________

Last edited by hleV; 11-04-2009 at 12:12.
hleV is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:43.


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