Raised This Month: $32 Target: $400
 8% 

[REQ] Multi-Surv Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sensatioNNN.
Junior Member
Join Date: Apr 2011
Location: Romania
Old 05-12-2011 , 17:33   [REQ] Multi-Surv Weapon
Reply With Quote #1

I need survivor to have weapons like in this picture, multiple weapons to choose from.
Attached Thumbnails
Click image for larger version

Name:	surv_multi_weapon.JPG
Views:	1197
Size:	71.8 KB
ID:	85986  
__________________
private plugin: Ion Cannon
sensatioNNN. is offline
makiza
BANNED
Join Date: Mar 2009
Old 05-13-2011 , 01:24   Re: [REQ] Multi-Surv Weapon
Reply With Quote #2

i need a lot of shit too.
makiza is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-13-2011 , 02:28   Re: [REQ] Multi-Surv Weapon
Reply With Quote #3

How many primary weapon you want?

**Edited**

Code added, please try.
Attached Files
File Type: sma Get Plugin or Get Source (zp_survivorguns.sma - 1250 views - 3.7 KB)
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 05-13-2011 at 03:12. Reason: Added code.
yokomo is offline
sensatioNNN.
Junior Member
Join Date: Apr 2011
Location: Romania
Old 05-13-2011 , 06:09   Re: [REQ] Multi-Surv Weapon
Reply With Quote #4

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)
__________________
private plugin: Ion Cannon
sensatioNNN. is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-13-2011 , 06:35   Re: [REQ] Multi-Surv Weapon
Reply With Quote #5

Quote:
Originally Posted by sensatioNNN. View Post
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
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
sensatioNNN.
Junior Member
Join Date: Apr 2011
Location: Romania
Old 05-13-2011 , 10:24   Re: [REQ] Multi-Surv Weapon
Reply With Quote #6

Works thanx.
__________________
private plugin: Ion Cannon

Last edited by sensatioNNN.; 05-13-2011 at 10:26.
sensatioNNN. is offline
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 07-14-2014 , 06:10   Re: [REQ] Multi-Surv Weapon
Reply With Quote #7

How i can make unlimited clip ammo this weapons ? xD
Attached Files
File Type: sma Get Plugin or Get Source (zp_survivorguns.sma - 883 views - 3.5 KB)
__________________
Iman in Allah
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-14-2014 , 06:26   Re: [REQ] Multi-Surv Weapon
Reply With Quote #8

Gratz in reviving a dead topic. You deserve a medal!
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
Drissdev1
Senior Member
Join Date: Jun 2014
Old 07-14-2014 , 07:49   Re: [REQ] Multi-Surv Weapon
Reply With Quote #9

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)
}
__________________
Drissdev1 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-14-2014 , 09:03   Re: [REQ] Multi-Surv Weapon
Reply With Quote #10

Quote:
Originally Posted by mohsen9010 View Post
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.
zmd94 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 10:33.


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