Raised This Month: $ Target: $400
 0% 

preventing player from getting extra frags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-04-2009 , 14:22   Re: preventing player from getting extra frags
Reply With Quote #3

PHP Code:
new g_havetouch[33]

enum
{
    
TT 1,
    
CT 2
}

public 
hamUse(entid
{
    if( 
g_havetouch[id] )
        return 
HAM_IGNORED
    
    
new iPlayers[32];
    new 
iNum;
    new 
szTarget[32]
    
pev(entpev_targetszTarget31)
    
    if( 
is_user_alive(id) && ( equal(szTarget"ct_target") || equal(szTarget"t_target") ) )
    {
        new 
style equal(szTarget"ct_target") ? CT TT
        
        
if( get_user_team(id) == style )
        { 
            
client_print(idprint_chat"[Push the button] You can't push your own button!")
        }
        else
        {
            
get_playersiPlayers iNum ,"ae"style == CT "CT" "TERRORIST");
            for( new 
0iNum i++)
            { 
                
set_user_frags(iPlayers[i],get_user_frags(iPlayers[i])+1); 
                
user_kill(iPlayers[i])
            }
            
set_user_frags(id,get_user_frags(id)+1)
            
client_print(idprint_chat"[Push the button] You pushed the button!")
            
g_havetouch[id] = true
        
}
    }
    
    return 
HAM_IGNORED

__________________

Last edited by AntiBots; 03-04-2009 at 14:28.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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:05.


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