Raised This Month: $ Target: $400
 0% 

Instagib plugin showing lots of errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarlD
Senior Member
Join Date: Aug 2004
Old 10-18-2005 , 15:42  
Reply With Quote #1

Ok it compiles now, but weidly, when i type amx_help 1, 11, 21, 31, 41, 51, 61, i dont see my cvars (ex.: ma_instagib)

Code:
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_cvar("ma_weed", "1");^

did i forget anything?

Code:
/* Plugin generated by AMXX-Studio */ #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_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) {             } // 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,20)     cs_set_user_money(id,1,0)         strip_user_weapons(id)         give_item(id,"weapon_scout")         cs_set_weapon_ammo(id,60); }
__________________
DarlD is offline
Send a message via MSN to DarlD
Reply



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 23:48.


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