AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [REQ] Multi-Surv Weapon (https://forums.alliedmods.net/showthread.php?t=156830)

sensatioNNN. 05-12-2011 17:33

[REQ] Multi-Surv Weapon
 
1 Attachment(s)
I need survivor to have weapons like in this picture, multiple weapons to choose from.

makiza 05-13-2011 01:24

Re: [REQ] Multi-Surv Weapon
 
i need a lot of shit too.

yokomo 05-13-2011 02:28

Re: [REQ] Multi-Surv Weapon
 
1 Attachment(s)
How many primary weapon you want?

**Edited**

Code added, please try.

sensatioNNN. 05-13-2011 06:09

Re: [REQ] Multi-Surv Weapon
 
I add these and give me errors

Code:

fm_give_item(id, "weapon_xm1014")
fm_set_user_bpammo(id, CSW_XM1014, 90)
 
fm_give_item(id, "weapon_m4a1")
fm_set_user_bpammo(id, CSW_M4A1, 90)
 
fm_give_item(id, "weapon_3gsg1")
fm_set_user_bpammo(id, CSW_3GSG1, 90)
 
fm_give_item(id, "weapon_famas")
fm_set_user_bpammo(id, CSW_FAMAS, 90)


yokomo 05-13-2011 06:35

Re: [REQ] Multi-Surv Weapon
 
Quote:

Originally Posted by sensatioNNN. (Post 1468457)
I add these and give me errors

Code:

fm_give_item(id, "weapon_xm1014")
fm_set_user_bpammo(id, CSW_XM1014, 90)
 
fm_give_item(id, "weapon_m4a1")
fm_set_user_bpammo(id, CSW_M4A1, 90)
 
fm_give_item(id, "weapon_3gsg1")
fm_set_user_bpammo(id, CSW_3GSG1, 90)
 
fm_give_item(id, "weapon_famas")
fm_set_user_bpammo(id, CSW_FAMAS, 90)


Make sure the weapon name is correct:
PHP Code:

        fm_give_item(id"weapon_g3sg1")
        
fm_set_user_bpammo(idCSW_G3SG190

compile again

sensatioNNN. 05-13-2011 10:24

Re: [REQ] Multi-Surv Weapon
 
Works thanx.

mohsen9010 07-14-2014 06:10

Re: [REQ] Multi-Surv Weapon
 
1 Attachment(s)
How i can make unlimited clip ammo this weapons ? xD

Just4Games 07-14-2014 06:26

Re: [REQ] Multi-Surv Weapon
 
Gratz in reviving a dead topic. You deserve a medal!

Drissdev1 07-14-2014 07:49

Re: [REQ] Multi-Surv Weapon
 
add the Code Your Mod ZM
______________________
new cvar_survweapon, cvar_survweapon1, cvar_survweapon2
plugin_init
{
cvar_survweapon = register_cvar("zp_surv_weapon", "weapon_ak47")
cvar_survweapon1 = register_cvar("zp_surv_weapon1", "weapon_m4a1")
cvar_survweapon2 = register_cvar("zp_surv_weapon2", "weapon_xm1014")
}

humanme(id, survivor, silentmode, sniper)
{
// Set human attributes based on the mode
if (survivor)
{


// Give survivor his own weapon
static survweapon[32], survweapon1[32], survweapon2[32]
get_pcvar_string(cvar_survweapon, survweapon, charsmax(survweapon))
get_pcvar_string(cvar_survweapon1, survweapon1, charsmax(survweapon1))
get_pcvar_string(cvar_survweapon2, survweapon2, charsmax(survweapon2))
fm_give_item(id, survweapon)
fm_give_item(id, survweapon1)
fm_give_item(id, survweapon2)
}

zmd94 07-14-2014 09:03

Re: [REQ] Multi-Surv Weapon
 
Quote:

Originally Posted by mohsen9010 (Post 2167361)
How I can make unlimited clip ammo this weapons?

You don't have to edit the code as the plugin is acted as an addon.

Just edit your zombieplague.cfg file.


All times are GMT -4. The time now is 14:38.

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