Raised This Month: $ Target: $400
 0% 

Function when Terrorists, CTs win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 07-10-2011 , 07:25   Function when Terrorists, CTs win
Reply With Quote #1

So I need a plugin that does a function when Terrorists Win, when Counter-Terrorists win or when nobody wins.
dreamedward is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-11-2011 , 14:09   Re: Function when Terrorists, CTs win
Reply With Quote #2

What is the function you need? Please be more specific.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 07-11-2011 , 16:10   Re: Function when Terrorists, CTs win
Reply With Quote #3

I just want a code that does a function when CTs, Ts or Nobody wins. I'll add my function. I just want the code that does the function when the teams win.
dreamedward is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-11-2011 , 17:30   Re: Function when Terrorists, CTs win
Reply With Quote #4

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

#define PLUGIN    "New Plugin"
#define AUTHOR    "Rtk.Esc"
#define VERSION    "0.1"

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
register_event"SendAudio""EventTerrWin""a""2=%!MRAD_terwin" );
    
register_event"SendAudio""EventCtWin""a""2=%!MRAD_ctwin" )
}

public 
EventTerrWin()
{
    for ( new 
id 1id <= 32; ++id )
    {
        function(
id)
    }
}

public 
EventCtWin()
{
    for ( new 
id 1id <= 32; ++id )
    {
        function(
id)
    }
}

public function(
id)
{

I think this should work
Erox902 is offline
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 07-12-2011 , 06:12   Re: Function when Terrorists, CTs win
Reply With Quote #5

Thanks!
dreamedward 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 09:11.


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