Login to ZARP
|
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 |
|
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
|
i like it +support. Nice that you put in codes aswell
|
|
Login or register to post a reply.
|
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 |
|
Last Edit: 9 years 5 months ago by Hoi.
Login or register to post a reply.
|
It's so annoying when a map gets RTV'd instantly without enough time to finish it!
![]() |
|
Login or register to post a reply.
|
Thank you for moving it. I hadn't even realized this section was here. I'll post others I have here now.
|
|
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
|
I'll bring this up in the BHOP Meeting for a vote on this, nice suggestion!
|
|
Login or register to post a reply.
|