Quote:
Originally Posted by BesTKiLLeR
Check this, it sets sv_password cvar to "" every second.
PHP Code:
#include <amxmodx>
#define PLUGIN "Anti sv_password Changer" #define VERSION "1.0" #define AUTHOR "BesT" #define TASK_ID 19459
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(1.0, "EverySecond", TASK_ID, _, _, "b") }
public EverySecond() { server_cmd("sv_password ^"^"") }
|
It will create a alot of logs and will hang web console.
And same thing can be done with taskschedular in amxx.cfg
amx_task 60 "amx_cvar sv_password" "sr"
Just a thing confuses me, how can I use it: (Set password value?)
amx_task 60 "amx_cvar sv_password """ "sr" (I mean "" in "").
Well your idea is right, but what if other methods can be used? Like: client_disconnected (but its less reliable), any other idea like this? Or password remove on client_connect, every time client connect, other method can be tried that?
Ofc, if there will be no any other idea or suggestion, then I would have to go with it and will go with it.
PHP Code:
#include <amxmodx>
#define PLUGIN "Anti sv_password Changer"
#define VERSION "1.0"
#define AUTHOR "BesT"
#define TASK_ID 19459
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(60.0, "RemovePass", TASK_ID, _, _, "b")
}
public RemovePass() {
server_cmd("sv_password ^"^"")
}