Raised This Month: $ Target: $400
 0% 

Round Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 06-05-2013 , 00:01   Re: Round Help
Reply With Quote #1

Hornet, no, this is just for my own consumption.
MPD, no, I just want to close it.
Backstabnoob, still don't work.

I've change the code to:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "Round End"
#define VERSION "1.0"
#define AUTHOR "DavidJr"

new g_iTScoreg_iCTScore

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("TeamScore""Event_TeamScore""a")    
}
public 
Event_TeamScore(id)
{
    new 
szTeam[2]
    
read_data(1szTeamcharsmax(szTeam))
    switch( 
szTeam[0] )
    {
        case 
1:
        {
            
g_iCTScore read_data(2)
        }
        case 
2:
        {
            
g_iTScore read_data(2)
            
CheckScore()
        }
    }
}
CheckScore()
{
    new 
winlimit get_cvar_num("mp_winlimit")
    if( 
g_iTScore == winlimit || g_iCTScore == winlimit )
    {
        
server_cmd("quit");

    }

And I tried it use CT teams but nothing happens after I reached the win limit. Just a scoreboard only is showed.

Last edited by Randomize; 06-05-2013 at 00:02.
Randomize 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 16:17.


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