Raised This Month: $51 Target: $400
 12% 

[REQ] Automatic map change after team has 16 wins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-17-2018 , 18:04   [REQ] Automatic map change after team has 16 wins
Reply With Quote #1

Hey i want a plugin, if the team CS or TT makes 16 wins the map will automatic change in 10 sec (like csgo)

Also i dont want terrorsts when they plant bomb they get 3 kills i dont want that. (SAME AS DEFUSING) 0 kills for defuse or plant or explode

Last edited by elmedin; 05-17-2018 at 18:09.
elmedin is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-17-2018 , 18:19   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #2

Quote:
Originally Posted by elmedin View Post
Hey i want a plugin, if the team CS or TT makes 16 wins the map will automatic change in 10 sec (like csgo)

Also i dont want terrorsts when they plant bomb they get 3 kills i dont want that. (SAME AS DEFUSING) 0 kills for defuse or plant or explode
I've seen that you know how to code so I recommend you searching in forums, hooking win event of both teams and doing some stuff there. You know, some search never hurts.
__________________
Relaxing is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-17-2018 , 18:33   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
I've seen that you know how to code so I recommend you searching in forums, hooking win event of both teams and doing some stuff there. You know, some search never hurts.
I did search but didnt find it
elmedin is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 05-17-2018 , 21:07   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #4

Try this, not tested!


PHP Code:
#include <amxmodx> 

new CT 0
new 
TT 0

public 
plugin_init( ) 

    
register_event"SendAudio""TTWin""a""2&%!MRAD_terwin" ); 
    
register_event"SendAudio""CTWin""a""2&%!MRAD_ctwin" ); 
    
register_event"TextMsg""RR""a""2&#Game_C""2&#Game_w""2&#Game_will_restart_in" );


public 
TTWin() 

    
TT++; 
    
Check();


public 
CTWin() 

    
CT++; 
    
Check();


public 
RR()
{
    
TT 0;
    
CT 0;
}

public 
Check() 
{     
    
client_print(0print_chat"CT = %d || TT = %d"CT TT )
    
    if( 
CT == 16 || TT == 16 )
        
set_task(10.0"ChangeMap")


public 
ChangeMap()
    
server_cmd("changelevel de_dust2"
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 05-18-2018 , 00:09   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #5

Just count on team wins ++ and add a condition check

Edit :
Hartmann eagerly waiting for your pug mod hope it have the auto ready option in plugin itself as most Indian servers run your plugin...

Last edited by instinctpt1; 05-18-2018 at 00:11. Reason: .
instinctpt1 is offline
sekac
Senior Member
Join Date: Nov 2016
Old 05-18-2018 , 05:30   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #6

You don't need a plugin for that, use mp_winlimit.
sekac is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-18-2018 , 06:16   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #7

Quote:
Originally Posted by Hartmann View Post
Try this, not tested!


PHP Code:
#include <amxmodx> 

new CT 0
new 
TT 0

public 
plugin_init( ) 

    
register_event"SendAudio""TTWin""a""2&%!MRAD_terwin" ); 
    
register_event"SendAudio""CTWin""a""2&%!MRAD_ctwin" ); 
    
register_event"TextMsg""RR""a""2&#Game_C""2&#Game_w""2&#Game_will_restart_in" );


public 
TTWin() 

    
TT++; 
    
Check();


public 
CTWin() 

    
CT++; 
    
Check();


public 
RR()
{
    
TT 0;
    
CT 0;
}

public 
Check() 
{     
    
client_print(0print_chat"CT = %d || TT = %d"CT TT )
    
    if( 
CT == 16 || TT == 16 )
        
set_task(10.0"ChangeMap")


public 
ChangeMap()
    
server_cmd("changelevel de_dust2"
Thanks dude it works i love you. But can you make map change randomly ? like cs_assault de_dust, de_mirage also after 15 rounds players will switch to different team 5 from CT to TT and 5 from TT to CT
elmedin is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-18-2018 , 06:51   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #8

Quote:
Originally Posted by elmedin View Post
Thanks dude it works i love you. But can you make map change randomly ? like cs_assault de_dust, de_mirage also after 15 rounds players will switch to different team 5 from CT to TT and 5 from TT to CT
Array up all maps then pick a random.
__________________
Relaxing is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-18-2018 , 14:22   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #9

Quote:
Originally Posted by Relaxing View Post
Array up all maps then pick a random.
Smartass im not on scripting help but on request. So stop wasting my time -.-
elmedin is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-18-2018 , 14:46   Re: [REQ] Automatic map change after team has 16 wins
Reply With Quote #10

Quote:
Originally Posted by elmedin View Post
Smartass im not on scripting help but on request. So stop wasting my time -.-
I wonder what you could do those 5.4 seconds that took you to read that reply
__________________
Relaxing 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 18:58.


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