Login to ZARP





TOPIC: Bunny Hop - RTV Timer After Map Change

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283472

Server Name: ZARP BHop
Suggestion Title: RTV Timer
How would it benefit the server: Allow players to have more time to complete maps
Potential Issues/Exploits: None
Additional notes: This has been used by me for months and has been shared by me with Facepunch so others can make use of this functionality.

Just add the following variable to the top of the modules/sv_rtv.lua file and replace the first line of the RTV:Vote function in the same file. Following that, you will just need to add the last code snippet to the core_lang.lua file // This does work for both Surf and BHop modes.

Variables
RTV.VoteTime = 15 * 60
RTV.VotePossibleTime = RTV.MapInit + RTV.VoteTime

Function
	if CurTime() <= ( RTV.VotePossibleTime ) then
		local t,s = math.Round( ( RTV.VotePossibleTime - CurTime() ) / 60 ), "minutes"
		if t < 1 then t,s = math.Round( RTV.VotePossibleTime - CurTime() ), "seconds" end
		if t == 1 then s = "second" end
		return Core:Send( ply, "Print", { "Notification", Lang:Get( "VoteNotPossible", { t .. " " .. s } ) } )
	elseif ply.RTVLimit and CurTime() - ply.RTVLimit < 60 then

Notification (core_lang.lua)
Lang.VoteNotPossible = "Voting is not possible in this period (Please wait 1;)"

Link to Pastebin with comments added to explain what things are: pastebin.com/twYhbUdt
  • ›sᴋ‹ Cloud
  • ›sᴋ‹ Cloud's Avatar
  • Offline
  • Fresh Boarder
  • Developer
  • Posts: 5
  • Thanks received: 2
  • Karma: 0

Member of surfᴋultur
A Friendly Group of Skilled Source Engine Surfers


I make Garry's Mod servers and work on Surf and Bunny Hop gamemodes
Message me if you have questions about them.
Last Edit: 9 years 5 months ago by ›sᴋ‹ Cloud. Reason: Nicer looking post
Login or register to post a reply.
The following user(s) said Thank You: Jim_Jam

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283475

i like it +support. Nice that you put in codes aswell
  • Miro
  • Miro's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP
  • saint lawrence boyz
  • Posts: 1577
  • Thanks received: 240
  • Karma: 1



76561198036559876
Login or register to post a reply.

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283476

This looks like a suggestion, please use the suggestion template:
Server Name:

Suggestion Title:

How would it benefit the server:

Potential Issues/Exploits:

Additional notes:

I have moved this to the correct section for you, use the EDIT button, don't create a new post.

Full template can be found here:

www.zarpgaming.com/index.php/forum/serve...-suggestion-template
  • Hoi
  • Hoi's Avatar
  • Offline
  • Gold Boarder
  • ZARP VIP
  • 21
  • Posts: 2327
  • Thanks received: 513
  • Karma: 39



Thank you Nexize for VIP

21

Resigned Global moderator, TTT/DarkRP Admin
Last Edit: 9 years 5 months ago by Hoi.
Login or register to post a reply.

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283479

It's so annoying when a map gets RTV'd instantly without enough time to finish it!
:plussp:
  • Jim_Jam
  • Jim_Jam's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP
  • TTT is my child ❤️
  • Posts: 8590
  • Thanks received: 3490
  • Karma: -32
Login or register to post a reply.

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283481

Thank you for moving it. I hadn't even realized this section was here. I'll post others I have here now.
  • ›sᴋ‹ Cloud
  • ›sᴋ‹ Cloud's Avatar
  • Offline
  • Fresh Boarder
  • Developer
  • Posts: 5
  • Thanks received: 2
  • Karma: 0

Member of surfᴋultur
A Friendly Group of Skilled Source Engine Surfers


I make Garry's Mod servers and work on Surf and Bunny Hop gamemodes
Message me if you have questions about them.
Login or register to post a reply.
The following user(s) said Thank You: Jim_Jam

Bunny Hop - RTV Timer After Map Change 9 years 5 months ago #283491

I'll bring this up in the BHOP Meeting for a vote on this, nice suggestion!
  • Morgan
  • Morgan's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 15976
  • Thanks received: 6529
  • Karma: 95



Legendary Spectacular Border
MAL
Login or register to post a reply.
Moderators: MadMagic, Joshua, Kanna.

Time to create page: 0.143 seconds

118 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
3/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
0/32
Online
Connect to server View Gametracker Prop Hunt
0/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
115/983
Online
Top