Raised This Month: $ Target: $400
 0% 

Knife Model Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=[DaW]=-
Senior Member
Join Date: Jun 2006
Location: Canada
Old 07-16-2006 , 06:12   Knife Model Help
Reply With Quote #1

I tried my first script but it wont let me complie it so can someone please help me fix the errors it would be greatly appreatiate.
Attached Files
File Type: sma Get Plugin or Get Source (bb.sma.sma - 633 views - 1.1 KB)
-=[DaW]=- is offline
Send a message via MSN to -=[DaW]=-
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
-=[DaW]=-
Senior Member
Join Date: Jun 2006
Location: Canada
Old 07-16-2006 , 18:35   Re: Knife Model Help
Reply With Quote #3

thank you so much that was my first time trying to make something
-=[DaW]=- is offline
Send a message via MSN to -=[DaW]=-
-=[DaW]=-
Senior Member
Join Date: Jun 2006
Location: Canada
Old 07-16-2006 , 18:38   Re: Knife Model Help
Reply With Quote #4

see if this works out
Attached Files
File Type: sma Get Plugin or Get Source (bb.sma.sma - 137 views - 1.3 KB)
-=[DaW]=- is offline
Send a message via MSN to -=[DaW]=-
-=[DaW]=-
Senior Member
Join Date: Jun 2006
Location: Canada
Old 07-16-2006 , 18:43   Re: Knife Model Help
Reply With Quote #5

try this again for the second time
Attached Files
File Type: sma Get Plugin or Get Source (bb.sma.sma - 124 views - 2.9 KB)
-=[DaW]=- is offline
Send a message via MSN to -=[DaW]=-
-=[DaW]=-
Senior Member
Join Date: Jun 2006
Location: Canada
Old 07-16-2006 , 18:50   Re: Knife Model Help
Reply With Quote #6

last try if this dont work i give up
Attached Files
File Type: sma Get Plugin or Get Source (custom_knife.sma - 700 views - 1.5 KB)
-=[DaW]=- is offline
Send a message via MSN to -=[DaW]=-
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 08:07.


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