|
Author
|
Message
|
|
Member
Join Date: Apr 2011
Location: Czech Republick
|

04-11-2011
, 15:19
Help with Cvars
|
#1
|
Hi, I have problem with plugin.
I want make plugin say /forum with cvar ON or OFF plugin
My code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "say_forum"
#define VERSION "1.0"
#define AUTHOR "Extreem"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /forum","showmotd","Show Motd")
register_clcmd("say_team /forum","showmotd","Show Motd")
forum_Stranky = register_cvar("forum_stranky","1")
}
public showmotd (id, level, cid){
if (get_cvar_num(forum_Stranky == 1))
return PLUGIN_HANDLED;
show_motd(id,"forum.txt")
return PLUGIN_CONTINUE;
}
I have here many errors because I'm only learn
|
|
|
|