ok so how to i creat commands?
register_concmd?
Code:
/* Plugin Created by DarlD on amxmodx forums, Real nick = Meta */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Meta-Addons"
#define VERSION "0.1"
#define AUTHOR "Meta"
// Setting all the cvars and others here.
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD","event_resethud","b")
register_cvar("ma_details", "1")
register_cvar("ma_instagib", "0")
register_concmd("ma_instagib","instagib",ADMIN_KICK,"Instagib command")
register_cvar("ma_weed", "1");
}
/* Starting the plugins functions */
public event_resethud(id) {
if(is_user_connected(id)) {
set_task(0.1,"ma_instagib",id)
}
}
// ma_details is set here
public ma_details(id)
{
return PLUGIN_CONTINUE
}
// ma_instagib is set here
public ma_instagib(id)
{
if ( get_cvar_num("ma_instagib") == 1 )
show_hudmessage(id,"Meta-Addons: Instagib Mode has been activated!")
if(is_user_alive(id))
set_user_health(id,1)
cs_set_user_money(id,1,0)
strip_user_weapons(id)
give_item(id,"weapon_scout")
cs_set_weapon_ammo(id,60);
return PLUGIN_CONTINUE
}
it still aint working even with the register_concmd
__________________