Raised This Month: $51 Target: $400
 12% 

[REQ] Gun Mod (based on golden ak mod)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-04-2009 , 18:51   [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #1

Hi, I'm requesting a gun mod that is similar to the golden ak mod and the Silver Weapons Mod by Rolnaaba

Say Commands:
/gunmod //opens gun menu

Cvars:
see golden ak mod (same cvars)

The weapons include:
1.Shotguns m3
2.Shotguns xm1014
3.mp5
4.m4a1
5.ak47
6.m249 machine gun

default price could be 10000

I already have the models (attached)
I also have some "bw" models that show up on your back. Could you make it so that the bw models show up on the users back even when using the primary weapon?
See cheat_suit's backweapon mod:
http://forums.alliedmods.net/showthread.php?t=42199&highlight=backweapons

There is a special request for the xm1014 shotgun for this mod. The model I have provided is a flamethrower and the special request is that the shotgun should shoot flame sprites out when it shoots.
Thanks

++++Karma for anyone that helps me make this mod

ATTACHed thumbnail is pic of the flame shooting shotgun =P
Attached Thumbnails
Click image for larger version

Name:	Shotgun Flame.jpg
Views:	304
Size:	65.8 KB
ID:	54901  
Attached Files
File Type: zip ak47.zip (358.3 KB, 171 views)
File Type: zip m3 shotgun.zip (222.9 KB, 145 views)
File Type: zip m4a1.zip (393.2 KB, 147 views)
File Type: zip m249.zip (221.3 KB, 128 views)
File Type: zip xm1014 shotgun.zip (333.7 KB, 185 views)
File Type: zip mp5.zip (294.5 KB, 139 views)
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE

Last edited by laziboi72; 12-09-2009 at 21:35.
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-13-2009 , 21:41   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #2

ok heres a simple menus i made
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich> 
 
#define PLUGIN "Gun Mod"
#define AUTHOR "Zombiezzz"
#define VERSION "1.0"
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
 
    
RegisterHamHam_Spawn"player""GunMenu"
    
    
register_clcmd("say /guns""GunMenu")
    
register_clcmd("say_team /guns""GunMenu")
}
public 
GunMenu(id)

    new 
menu menu_create("Guns:""menu_handler"); 
     
    
menu_additem(menu"Shotgun M3: $800""1"0); 
    
menu_additem(menu"Shotgun xm1014: $1000""2"0); 
    
menu_additem(menu"Smg MP5 Navy: $600""3"0);
    
menu_additem(menu"Rifle M4A1: $1500""4"0);
    
menu_additem(menu"Rifle AK47: $1500""5"0);
    
menu_additem(menu"Para MachineGun: $2500""6"0);
     
    
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
    
menu_display(idmenu0); 

public 
menu_handler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
     
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
    new 
key str_to_num(data); 
    switch(
key
    { 
        case 
1
        { 
            new 
money cs_get_user_money(id
            if(
money>=1000
            { 
                
cs_set_user_money(idmoney -800); 
                 
                if( 
is_user_aliveid ) )  
                    
give_item(id"weapon_m3")  
                 
                
client_print(idprint_chat"[Gun Mod] You bought a M3 Shotgun $800"); 
            } 
             
        } 
        case 
2
        { 
    new 
money cs_get_user_money(id
            if(
money>=2000
    {
     
cs_set_user_money(idmoney -1000);
              
                if( 
is_user_aliveid ) )  
                    
give_item(id"weapon_xm1014")
          
        
client_print(idprint_chat"[Gun Mod] You bought a Shotty 1000"); 
    }
      
        }
        case 
3:
        {
    new 
money cs_get_user_money(id
            if(
money>=5000
    {
     
cs_set_user_money(idmoney -5000);
              
                if( 
is_user_aliveid ) )  
                  
give_item(id"weapon_mp5navy")
          
        
client_print(idprint_chat"[Gun Mod] You bought a MP5 for $600"); 
       }
         } 
 case 
4:
 {
  new 
money cs_get_user_money(id)
  if(
money>=6000)
  {
       
cs_set_user_money(idmoney -1500);
   
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_m4a1")
  
       
client_print(idprint_chat"[Gun Mod] You bought a M4A1 for $1500"); 
       }
         }
 case 
5:
 {
  new 
money cs_get_user_money(id)
  if(
money>=6000)
  {
       
cs_set_user_money(idmoney -1500);
   
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_ak47")
  
       
client_print(idprint_chat"[Gun Mod] You bought a AK47 for $1500"); 
       }
         }
 case 
6:
 {
  new 
money cs_get_user_money(id)
  if(
money>=2500)
  {
       
cs_set_user_money(idmoney -2500);
   
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_m249")
  
       
client_print(idprint_chat"[Gun Mod] You bought a Para Machinegun for $2500"); 
       }
         }
    }
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED

Im not good with models so you can use GWH Weapons Replace ment o.o
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-13-2009 , 21:48   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #3

thanks soo much !!
+karma to you zombie man!!
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-13-2009 , 21:49   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #4

lol NP i will sned you a better one later.
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-13-2009 , 21:50   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #5

tanks man!
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-20-2009 , 11:59   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #6

*BUMP*
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-20-2009 , 14:50   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #7

After a long time of working i got this so far ^_^ it should work good with your models and i added a unlimted clip cvar it compiers and it should work! have fun!
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich> 
 
#define PLUGIN "Gun Mod"
#define AUTHOR "Zombiezzz"
#define VERSION "1.0"
new AK_V_MODEL[64] = "models/v_ak47_1.mdl"
new AK_P_MODEL[64] = "models/p_ak47_1.mdl"
new AK_W_MODEL[64] = "models/w_ak47_1.mdl"
new M3_V_MODEL[64] = "models/v_m3_1.mdl"
new M3_P_MODEL[64] = "models/p_m3_1.mdl"
new M3_W_MODEL[64] = "models/w_m3_1.mdl"
new M4A1_V_MODEL[64] = "models/v_m4a1_1.mdl"
new M4A1_P_MODEL[64] = "models/p_m4a1_1.mdl"
new M4A1_W_MODEL[64] = "models/w_m4a1_1.mdl"
new M249_V_MODEL[64] = "models/v_m249_1.mdl"
new M249_P_MODEL[64] = "models/p_m249_1.mdl"
new M249_W_MODEL[64] = "models/w_m249_1.mdl"
new XM1014_V_MODEL[64] = "models/v_xm1014_1.mdl"
new XM1014_P_MODEL[64] = "models/P_xm1014_1.mdl"
new XM1014_W_MODEL[64] = "models/W_xm1014_1.mdl"
new MP5_V_MODEL[64] = "models/v_mp5_1.mdl"
new MP5_P_MODEL[64] = "models/p_mp5_1.mdl"
new MP5_W_MODEL[64] = "models/w_mp5_1.mdl"
new cvar_uclip
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
 
    
RegisterHamHam_Spawn"player""GunMenu"
 
    
cvar_uclip register_cvar("Unlimted Clipz""1")
 
    
register_clcmd("say /guns""GunMenu")
    
register_clcmd("say_team /guns""GunMenu")
}
public 
plugin_precache()
{
 
precache_model(AK_V_MODEL)
 
precache_model(AK_P_MODEL)
 
precache_model(AK_W_MODEL)
 
precache_model(M3_V_MODEL)
 
precache_model(M3_P_MODEL)
 
precache_model(M3_W_MODEL)
 
precache_model(M4A1_V_MODEL)
 
precache_model(M4A1_P_MODEL)
 
precache_model(M4A1_W_MODEL)
 
precache_model(M249_V_MODEL)
 
precache_model(M249_P_MODEL)
 
precache_model(M249_W_MODEL)
 
precache_model(XM1014_V_MODEL)
 
precache_model(XM1014_P_MODEL)
 
precache_model(XM1014_W_MODEL)
 
precache_model(MP5_V_MODEL)
 
precache_model(MP5_P_MODEL)
 
precache_model(MP5_W_MODEL)
}
public 
GunMenu(id)

    new 
menu menu_create("Guns:""menu_handler"); 
 
    
menu_additem(menu"Shotgun M3: $800""1"0); 
    
menu_additem(menu"Shotgun xm1014: $1000""2"0); 
    
menu_additem(menu"Smg MP5 Navy: $600""3"0);
    
menu_additem(menu"Rifle M4A1: $1500""4"0);
    
menu_additem(menu"Rifle AK47: $1500""5"0);
    
menu_additem(menu"Para MachineGun: $2500""6"0);
 
    
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
    
menu_display(idmenu0); 

public 
menu_handler(idmenuitem

    if( 
item == MENU_EXIT 
    { 
        
menu_destroy(menu); 
        return 
PLUGIN_HANDLED
    } 
    new 
data[6], iName[64]; 
    new 
accesscallback
 
    
menu_item_getinfo(menuitemaccessdata,5iName63callback); 
    new 
key str_to_num(data); 
    switch(
key
    { 
        case 
1
        { 
            new 
money cs_get_user_money(id
            if(
money>=1000
            { 
                
cs_set_user_money(idmoney -800); 
 
                if( 
is_user_aliveid ) )  
                    
give_item(id"weapon_m3")  
 
                
client_print(idprint_chat"[Gun Mod] You bought a M3 Shotgun $800"); 
            } 
 
        } 
        case 
2
        { 
    new 
money cs_get_user_money(id
            if(
money>=2000
    {
     
cs_set_user_money(idmoney -1000);
 
                if( 
is_user_aliveid ) )  
                    
give_item(id"weapon_xm1014")
 
        
client_print(idprint_chat"[Gun Mod] You bought a Shotty 1000"); 
    }
 
        }
        case 
3:
        {
    new 
money cs_get_user_money(id
            if(
money>=5000
    {
     
cs_set_user_money(idmoney -5000);
 
                if( 
is_user_aliveid ) )  
                  
give_item(id"weapon_mp5navy")
 
        
client_print(idprint_chat"[Gun Mod] You bought a MP5 for $600"); 
       }
         } 
 case 
4:
 {
  new 
money cs_get_user_money(id)
  if(
money>=6000)
  {
       
cs_set_user_money(idmoney -1500);
 
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_m4a1")
 
       
client_print(idprint_chat"[Gun Mod] You bought a M4A1 for $1500"); 
       }
         }
 case 
5:
 {
  new 
money cs_get_user_money(id)
  if(
money>=6000)
  {
       
cs_set_user_money(idmoney -1500);
 
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_ak47")
 
       
client_print(idprint_chat"[Gun Mod] You bought a AK47 for $1500"); 
       }
         }
 case 
6:
 {
  new 
money cs_get_user_money(id)
  if(
money>=2500)
  {
       
cs_set_user_money(idmoney -2500);
 
  if( 
is_user_aliveid ) )
  
give_item(id"weapon_m249")
 
       
client_print(idprint_chat"[Gun Mod] You bought a Para Machinegun for $2500"); 
       }
         }
    }
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED
}  
public 
checkWeapon(id)
{
 new 
plrClipplrAmmoplrWeap[32]
 new 
plrWeapId
 
 plrWeapId 
get_user_weapon(idplrClip plrAmmo)
 
 if (
plrClip == && get_pcvar_num(cvar_uclip))
 {
  
// If the user is out of ammo..
  
get_weaponname(plrWeapIdplrWeap31)
  
// Get the name of their weapon
  
give_item(idplrWeap)
  
engclient_cmd(idplrWeap
  
engclient_cmd(idplrWeap)
  
engclient_cmd(idplrWeap)
 }
 return 
PLUGIN_HANDLED

__________________

Last edited by Zombiezzz; 12-20-2009 at 14:53.
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-20-2009 , 14:59   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #8

Quote:
Originally Posted by Zombiezzz View Post
After a long time of working i got this so far ^_^ it should work good with your models and i added a unlimted clip cvar it compiers and it should work! have fun!
Thanks !!
Ill try it out =P
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-20-2009 , 15:04   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #9

sorry its not to good. Let me know if it works than ill add more cvars and mabey if you want i can do a shop for like extra items
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-20-2009 , 15:11   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #10

Quote:
Originally Posted by Zombiezzz View Post
sorry its not to good. Let me know if it works than ill add more cvars and mabey if you want i can do a shop for like extra items
oh that would pretty cool
i just have one question. how did you get the w_ models to work?
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 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:17.


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