Raised This Month: $ Target: $400
 0% 

Knife Model Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-16-2006 , 06:24   Re: Knife Model Help
Reply With Quote #2

first timer i guess?
anywho, i moved things around to make it more more readable and added some stuff. Not sure if this will compile though
Code:
/* ================================================================================================= */ ==================================================================================================== Cvars: Defualt Settings bb_enable 1 ==================================================================================================== Required Modules: Engine ==================================================================================================== #include <amxmodx> #include <engine> #include <csx>  #define PLUGIN "Baseballbat" #define VERSION "1.0" #define AUTHOR "Shane Gallant" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_cvar("bb_enable" ,"1")     register_event("CurWeapon", "baseballbat" , "be" , "1=1") } public plugin_precache(){     precache_model("models/baseball.mdl")               return PLUGIN_HANDLED } public baseballbat(id) {     if (get_cvar_num("bb_enable") !=1)         return PLUGIN CONTINUE         if(!is_user_alive(id) && !is_user_connected(id))         return PLUGIN_CONTINUE         new weapid = read_data(2)         switch(weapid)     {         case CSW_KNIFE:         {             entity_set_string(id, EV_SZ_viewmodel, "models/v_baseball.mdl")         }     }     return PLUGIN_CONTINUE; }
__________________
It's a mystery.
Mini_Midget is offline
 



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 08:07.


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