cvar rcon_password & use
with the following code Im tryin to unban user from admin console so that upon fail/success admin can have the proper output. But the code seems to be say bad_rcon
Code:
//global |
Re: cvar rcon_password & use
Of course it says bad_rcon . Your making the player enter the incorrect rcon password.
Are you trying to change the rcon password there or deliberately force an inccorect password so the player can no longer use rcon ( in which case I do not understand why your asking )? I wouldn't recommend this - I'm not certain about it, but an admin could get banned from the server by inputting the incorrect rcon password multiple times. Why not just use server_cmd() ? |
Re: cvar rcon_password & use
My requirement is only allow the admin to unban users through rcon. then set the admin rcon_password to null.
rcon_password "RCON_PASS" //setting server rcon for one time use rcon removeid / removeip //process necessary rcon commands from admin console rcon_password ""//make rcon_password null, so admin cant get the rcon |
Re: cvar rcon_password & use
When rcon_password <pass> is executed alone by a client, it is used to allow that player to use rcon, not change to change it ( as oppose to server console ). Perhaps you could try rcon rcon_password <pass> ( not sure if that would work ).
Quote:
|
Re: cvar rcon_password & use
You don't need to use the rcon protocol when using AMX Mod X. Just use server_cmd().
|
Re: cvar rcon_password & use
Quote:
Im using rcon removeid so that admins can get an acknowledgement. |
Re: cvar rcon_password & use
Quote:
|
Re: cvar rcon_password & use
Quote:
|
Re: cvar rcon_password & use
I cant understand why this command is failing
client_cmd(id, "rcon_password ^"%s^";rcon removeid ^"%s^";rcon_password ^"%s^"", g_rcon, szArg, "") it does set rcon_password first, then use some rcon commands, then set rcon_password to blank. whats the flaw ? |
Re: cvar rcon_password & use
Quote:
Quote:
|
| All times are GMT -4. The time now is 15:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.