Raised This Month: $ Target: $400
 0% 

The DAmn amx mod X plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-10-2006 , 07:49  
Reply With Quote #1

Code:
#include <amxmodx> #include <engine> //*************************************************************************** //  Adding and/or removing weapons? Change these lines... #define MAXWEAPONS  3 //  Notice the commas after every line but the last. new const tempweapon[MAXWEAPONS][2][] = {     {"models/", "my_AK47_model.mdl"},     {"models/", "my_P228_model.mdl"},     {"models/", "my_M4A1_model.mdl"} }; //  Howto use lines above. //  remove the v_/p_ and split sourcepath where the v_/p_ was. easy... new Weapon[MAXWEAPONS] = {     CSW_AK47,     CSW_P228,     CSW_M4A1 }; //**************************************************************************** new weapon[MAXWEAPONS][2][128]; public plugin_init() {     register_plugin("Easy Wpn Models" , "1.0" , "[ --<-@ ]");     register_event("CurWeapon" , "change_model" , "be" , "1=1");     set_model(); } set_model() {     for ( new i = 0 ; i < MAXWEAPONS ; i++ ) {         formatex(weapon[i][0], 127,"%sv_%s", tempweapon[i][0], tempweapon[i][1]);         formatex(weapon[i][1], 127,"%sp_%s", tempweapon[i][0], tempweapon[i][1]);     } } public plugin_precache() {     for ( new i = 0 ; i < MAXWEAPONS ; i++ ) {         precache_model(weapon[i][0]);         precache_model(weapon[i][1]);     } } public change_model(id) {     if ( ! is_user_alive(id) && ! is_user_connected(id) && is_user_bot(id) )         return PLUGIN_CONTINUE;         new weapid = read_data(2);         for ( new i = 0 ; i < MAXWEAPONS ; i++ ) {         if ( weapid == Weapon[i] ) {             entity_set_string(id, EV_SZ_viewmodel, weapon[i][0]);             entity_set_string(id, EV_SZ_weaponmodel, weapon[i][1]);         }     }     return PLUGIN_CONTINUE; }
[ --<-@ ] Black Rose is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 04-11-2006 , 00:38  
Reply With Quote #2

So i can copy this and edit it but what do i save it as and where do i put it?
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-11-2006 , 10:56  
Reply With Quote #3

Use the compiler to get an amxx file out of the sma file.

Put the amxx file in your plugins dir.

Add in plugins.ini
Code:
EasyWpnModels.amxx

Last edited by [ --<-@ ] Black Rose; 10-14-2006 at 19:25.
[ --<-@ ] Black Rose is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 04-11-2006 , 14:47   so far
Reply With Quote #4

HERES WHAT GUNS I GOT!!! I renamed them cuz i heard you have too for them to be recognized by steam.

butcher p_butcher.mdl
butcher v_butcher.mdl
butcher v_butcher.mdl.ztmp

c40

c40 p_c40.mdl
c40 v_c40.mdl
c40 w_c40.mdl

grenade

grenade p_grenade.mdl
grenade v_grenade.mdl
grenade v_grenade.mdl.ztmp
grenade w_grenade.mdl


handgun FOLDER

glock187 p_glock187.mdl
glock187 v_glock187.mdl
glock187 v_glock187.mdl.ztmp
glock187 w_glock187.mdl

deagle187 p_deagle187.mdl
deagle187 v_deagle187.mdl
deagle187 v_deagle187.mdl.ztmp
deagle187 w_deagle187.mdl

elite187 v_elite187.mdl
elite187 v_elite187.mdl.ztmp
elite187 w_elite187.mdl

57 p_57.mdl
57 v_57.mdl
57 v_57.mdl.ztmp
57 w_57.mdl

usp187 p_usp187.mdl
usp187 v_usp187.mdl
usp187 v_usp187.mdl
usp187 w_usp187.mdl

machine folder

machine p_m2499.mdl
machine v_m2499.mdl
machine v_m2499.mdl.ztmp
machine w_m2499.mdl

rifles

m4a187 p_m4a187.mdl
m4a187 v_m4a187.mdl
m4a187 v_m4a187.mdl.ztmp
m4a187 w_m4a187.mdl
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-12-2006 , 16:08  
Reply With Quote #5

[offtopic] I'm sorry, wasn't there another front line many centuries ago that was banned? Had to point this out, it seemed to obvious[/offtopic]
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
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 16:32.


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