Raised This Month: $ Target: $400
 0% 

only ct


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nixh
Member
Join Date: Nov 2013
Old 06-26-2014 , 11:29   only ct
Reply With Quote #1

hey i got this code and i need that this would affect only ct team, i mean that ct only get that godmode for 10 sec. Would be cool if someone helps me.

PHP Code:
#include <amxmodx>
#include <fun>

#define TASK_GM 10001

new Float:gfProtectTime 10.0;

public 
plugin_init() 
{
    
register_plugin"Spawn Protection""0.1""hornet" );
    
    
register_event"HLTV""evRoundStart""a""1=0""2=0" );
}

public 
evRoundStart()
{
    
remove_taskTASK_GM );
    
    new 
players32 ], playernum;
    
get_playersplayersnum );
    for( new 
num ++ )
    {
        
player players];
        if( 
is_user_aliveplayer ) && is_user_connectedplayer ) )
            
set_user_godmodeplayer);
    }
    
    
set_taskgfProtectTime"godmodeOff"TASK_GM )
}

public 
godmodeOff()
{
    new 
players32 ], playernum;
    
get_playersplayersnum );
    for( new 
num ++ )
    {
        
player players];
        if( 
is_user_aliveplayer ) && is_user_connectedplayer ) )
            
set_user_godmodeplayer);
    }

nixh is offline
 



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 21:12.


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