AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Knife Model Help (https://forums.alliedmods.net/showthread.php?t=41482)

-=[DaW]=- 07-16-2006 06:12

Knife Model Help
 
1 Attachment(s)
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.

Mini_Midget 07-16-2006 06:24

Re: Knife Model Help
 
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; }

-=[DaW]=- 07-16-2006 18:35

Re: Knife Model Help
 
thank you so much that was my first time trying to make something

-=[DaW]=- 07-16-2006 18:38

Re: Knife Model Help
 
1 Attachment(s)
see if this works out

-=[DaW]=- 07-16-2006 18:43

Re: Knife Model Help
 
1 Attachment(s)
try this again for the second time

-=[DaW]=- 07-16-2006 18:50

Re: Knife Model Help
 
1 Attachment(s)
last try if this dont work i give up

-=[DaW]=- 07-16-2006 18:51

Re: Knife Model Help
 
yessssssssssssssss thanks for all your help


All times are GMT -4. The time now is 08:07.

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