This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Change sv pass every 30 min


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 12-04-2016 , 07:25   Change sv pass every 30 min
Reply With Quote #1

Hi. I want a code that executes sv_password "" every 30 minutes.
khashayar007 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2016 , 08:50   Re: Change sv pass every 30 min
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=1263
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
farsitools
Junior Member
Join Date: Sep 2010
Old 12-04-2016 , 09:22   Re: Change sv pass every 30 min
Reply With Quote #3

1-Set password
2-Server Run
3-Password change
4-In the next round or the next reset will enter the new password to the server
...Of Hlsm can either get help
for onec
TNQ
__________________
farsitools is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 12-05-2016 , 06:46   Re: Change sv pass every 30 min
Reply With Quote #4

Quote:
Originally Posted by khashayar007 View Post
Hi. I want a code that executes sv_password "" every 30 minutes.
I think, you want it for your cw? That people leave it with pass set ..!!
Try this by GHW_Chronic

It automatically removes pass, when server is empty [Removing Pass, Delay, Limits On Your Cvar Settings]

https://forums.alliedmods.net/showthread.php?t=17450
Alber9091 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-05-2016 , 10:03   Re: Change sv pass every 30 min
Reply With Quote #5

Untested, you can change the delay time using the "sv_delaytime" cvar. Keep in mind that all numbers should always be Floats. 60 will become 60.0

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Reset Password"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new pCvarTime

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pCvarTime register_cvar("sv_delaytime""1800.0")
    
    
set_task(get_pcvar_float(pCvarTime), "ChangeSettings")
}

public 
ChangeSettings() {
    
server_cmd("sv_password ^"^"")
    
client_print(0print_chat"[AMXX] Server password got removed.")
    
set_task(get_pcvar_float(pCvarTime), "ChangeSettings")

__________________

Last edited by Napoleon_be; 12-05-2016 at 10:48.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 12-05-2016 , 10:52   Re: Change sv pass every 30 min
Reply With Quote #6

Thanks guys.
khashayar007 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 19:43.


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