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

[REQUEST] - Mapchange if Teamscore differs by 10 Wins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 07-14-2006 , 12:48   [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #1

Hi

I'm been searching this plugin quite a while and thought it has been done for ages - but i cannot find it.

A Plugin which monitors the Teamscores for both Teams - if one Team reaches for ex. 10 more Teamwins than the other Team, the Server automatically changes to the next map in the Cycle.

It should change to the nextmap if the Teamscore reaches: 10:0 or 2:12 or 14:4.

It would be nice if the needed Teamwins are configurable through a cvar.

If this Plugin has already been done, pls poste the url.

THX!
AllMassive is offline
Egarim
Member
Join Date: Jul 2006
Location: TheWorld (but not this o
Old 07-14-2006 , 14:22   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #2

amx_cvar "mp_windifference 10"?
mp_windifference seems to be a working cvar
__________________
Give me where to stand, and I will move the earth.
-Archimedes
Egarim is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 07-14-2006 , 20:37   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #3

NICE

I hope it works - i'll test it right now
AllMassive is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 07-16-2006 , 19:52   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #4



mp_windifference doesnt work .

I set it to 'mp_windifference 10' - default was '1' - doesnt change the map if one team leads by 10 Points.
AllMassive is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 11-12-2006 , 10:41   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #5

Can somebody code this one ?
AllMassive is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-14-2006 , 10:34   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #6

Ok, see the source for details.
Attached Files
File Type: sma Get Plugin or Get Source (windifference_mapchanger.sma - 748 views - 1.3 KB)

Last edited by VEN; 11-14-2006 at 10:40.
VEN is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 11-15-2006 , 11:21   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #7

Cool VEN - thx!

I'll test it and report back.

AllMassive is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 11-15-2006 , 23:47   Re: [REQUEST] - Mapchange if Teamscore differs by 10 Wins
Reply With Quote #8

NiCE !

It works !

Thank you so much !

Would it be possible for you to add logging to the amx-logfile when the plugin changes the Map ( with the current Teamscore) ?

Another thing is, that the Mapchange happens really fast after the plugin recognizes the Teamscore - could there be added some kind of delay (5 seconds with a big red notification in the middle of the screen) ?

And a last thing () - could you add a message into the players console, that after the new map started players can look why the Map has changed ?

EDiT:

Quote:
Originally Posted by AllMassive View Post
NiCE !
Another thing is, that the Mapchange happens really fast after the plugin recognizes the Teamscore - could there be added some kind of delay (5 seconds with a big red notification in the middle of the screen) ?
I've found on line 51:
Code:
set_task(2.0, "task_changelevel", _, nextmap, 31)
Does changing '2.0' to '5.0' raise the Time until the forced Mapchange ?

Last edited by AllMassive; 11-15-2006 at 23:54.
AllMassive 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 08:39.


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