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 , 18:06  
Reply With Quote #1

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
__________________
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