AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Gun Mod (based on golden ak mod) (https://forums.alliedmods.net/showthread.php?t=110924)

laziboi72 12-04-2009 18:51

[REQ] Gun Mod (based on golden ak mod)
 
7 Attachment(s)
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

Zombiezzz 12-13-2009 21:41

Re: [REQ] Gun Mod (based on golden ak mod)
 
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

laziboi72 12-13-2009 21:48

Re: [REQ] Gun Mod (based on golden ak mod)
 
thanks soo much !!
+karma to you zombie man!!

Zombiezzz 12-13-2009 21:49

Re: [REQ] Gun Mod (based on golden ak mod)
 
lol NP i will sned you a better one later.

laziboi72 12-13-2009 21:50

Re: [REQ] Gun Mod (based on golden ak mod)
 
tanks man!

laziboi72 12-20-2009 11:59

Re: [REQ] Gun Mod (based on golden ak mod)
 
*BUMP*

Zombiezzz 12-20-2009 14:50

Re: [REQ] Gun Mod (based on golden ak mod)
 
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 :P 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



laziboi72 12-20-2009 14:59

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

Originally Posted by Zombiezzz (Post 1024220)
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 :P it compiers and it should work! have fun!

Thanks !!
Ill try it out =P

Zombiezzz 12-20-2009 15:04

Re: [REQ] Gun Mod (based on golden ak mod)
 
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 :P

laziboi72 12-20-2009 15:11

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

Originally Posted by Zombiezzz (Post 1024240)
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 :P

oh that would pretty cool
i just have one question. how did you get the w_ models to work?


All times are GMT -4. The time now is 02:43.

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