AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how 2 give Zombie a gun? (https://forums.alliedmods.net/showthread.php?t=110282)

Zombiezzz 11-27-2009 16:57

how 2 give Zombie a gun?
 
I thought it will be easy to give a zombie class a gun but its not D:< how do i give it a gun so it can use it?

AfteR. 11-28-2009 15:04

Re: how 2 give Zombie a gun?
 
Zombie Plague?

Zombiezzz 11-28-2009 15:07

Re: how 2 give Zombie a gun?
 
yup, Zombie palgue 4.3, i want to give it a scout ^_^ i got teh code and all to give it a weapon and it works to but Zombie plague the mod makes it so zombies can't shiwch to guns so how can i amek it so only this zombie class can hold the gun?

AfteR. 11-28-2009 15:10

Re: how 2 give Zombie a gun?
 
Search for this line:

PHP Code:

// Allowed weapons for zombies (added grenades/bomb for sub-plugin support, since they shouldn't be getting them anyway) 

And then add...

PHP Code:

(1<<CSW_SCOUT

It should look like this:

PHP Code:

const ZOMBIE_ALLOWED_WEAPONS_BITSUM = (1<<CSW_KNIFE)|(1<<CSW_HEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_C4)|(1<<CSW_SCOUT


Zombiezzz 11-28-2009 15:42

Re: how 2 give Zombie a gun?
 
it works but if i want it in the Zombie class, if i do this, people will have to edit their Zombie Palgue 3.4

AfteR. 11-28-2009 15:52

Re: how 2 give Zombie a gun?
 
Quote:

Originally Posted by Zombiezzz (Post 1001239)
it works but if i want it in the Zombie class, if i do this, people will have to edit their Zombie Palgue 3.4

Yes..

Zombiezzz 11-28-2009 15:52

Re: how 2 give Zombie a gun?
 
._. see i want a code that lets it have a scout In the Zombie class not in Zombie Plague 4.3

Zombiezzz 12-20-2009 17:58

Re: how 2 give Zombie a gun?
 
bumb

Russiaboy 02-24-2010 10:44

Re: how 2 give Zombie a gun?
 
fm_give_item(id,"weapon_deagle") ?

Zombiezzz 02-24-2010 18:17

Re: how 2 give Zombie a gun?
 
:/ did you read my last post? zombies cant have guns so i need a code that makes it so zombies can have guns without having the person to change their ZP mod


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

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