Raised This Month: $ Target: $400
 0% 

cvar rcon_password & use


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hyphen
Senior Member
Join Date: Aug 2011
Old 07-07-2012 , 01:05   cvar rcon_password & use
Reply With Quote #1

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
new g_rcon[20]

//plugin_init()
get_cvar_string("rcon_password", g_rcon, 19)    

//admin cmd public function
new szCommand[20]
read_argv(0, szCommand, 19)

if(equal(szCommand, "amx_unbanid"))
{
	if(!cmd_access(id, level, cid, 2))
		return PLUGIN_HANDLED
			
	new szArg[25]
	read_argv(1, szArg, 24)
	client_cmd(id, "rcon_password ^"%s^";rcon removeid ^"%s^";rcon_password ^"%s^"", g_rcon, szArg, "")
}
hyphen is offline
 



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 15:07.


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