Raised This Month: $ Target: $400
 0% 

Compiling Problems..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-22-2006 , 11:25  
Reply With Quote #8

Nazi plugins are bad!

btw w_ models are the ones you see on the ground (no need to change them in CurWeapon)

Code:
#include <amxmodx> #include <engine>  // This plugin requires engine #define PLUGIN "Nazi" // <-- lol? #define VERSION "1.0" #define AUTHOR "Willy2k" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("CurWeapon" , "set_models" , "be" , "1=1") } public plugin_precache() {     precache_model("models/v_m4ai.mdl") // the view model     precache_model("models/p_m4ai.mdl") // the player (view) model } public set_models(id) {     if(!is_user_alive(id))     { // if the player is dead for some reason, prevent the rest of the function from being executed         return PLUGIN_CONTINUE     }         new weapid = read_data(2) // get the weapon ID         switch(weapid)     {         case CSW_M4A1:         { // check if it's the weapon ID we want (see below for weapon constants)             entity_set_string(id , EV_SZ_viewmodel , "models/v_m4ai.mdl") // set the view model             entity_set_string(id , EV_SZ_weaponmodel , "models/p_m4ai.mdl") // set the player (view) model         }         // this is where you'd add more if needed     }     return PLUGIN_CONTINUE }
__________________
FatalisDK 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 05:07.


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