Raised This Month: $ Target: $400
 0% 

Help (Should be simple)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-06-2010 , 16:55   Re: Help (Should be simple)
Reply With Quote #3

Quote:
Originally Posted by RedRobster View Post
PHP Code:
public plugin_init()
{
       
register_event"DeathMsg" "SwitchTeams" "a" )
}

public 
SwitchTeams()
{
       new 
iVictim read_data)
       new 
iAttacker get_user_attackeriVictim )

       if( 
iVictim == iAttacker )
               return 
PLUGIN_HANDLED

       
if( cs_get_user_teamiVictim ) == CS_TEAM_T )
       {
               
cs_set_user_teamiVictim CS_TEAM_CT )
               
cs_set_user_teamiAttacker CS_TEAM_T )
       }
       else if( 
cs_get_user_teamiVictim ) == CS_TEAM_CT )
       {
               
iTimer 30.0
       
}
       return 
PLUGIN_HANDLED

The timer is named iTimer so that should work. Thanks, I'll try it. I'll be sure to give you credit when I release the plugin publicly.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 05:26.


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