iv been learning to cod in c# and c++ for about the last 14 weeks and have decided to try and write a amxx plugin.
my problem is i dont know what im really doing, even tho i read those tutorials.
im trying to make some dumb program to display cvars such as the rcon_password one but for some reason i cant figure out how to get it to work
heres what iv got so far.
Code:
#include <amxmodx>
#include <amxmisc>
new plugin[]="Rcon Commander"
new author[]="Anthrax"
new version[]="1.00"
public plugin_init()
{
register_plugin(plugin,author,version)
register_concmd("amx_rconpw","cmd_rcon_password",ADMIN_RCON," Returns the value of R-pw")
}
public cmd_rcon_password(id,level,cid)
{
new password[20]
if ( ! cmd_access( id, level, cid, 0 ) )
{
console_print(id, "Access Denied")
return PLUGIN_HANDLED
}
get_cvar_string("rcon_password",password,20)
console_print(id,"Rcon pw is: ", password )
return PLUGIN_HANDLED
}
it's just basicly a rip of the one that comes with amxx but i dont want it to change any values, just display the value of whats been hardcoded
your help is much welcomed