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

Help / Support [HELP] Drop bazooka


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rybka
Member
Join Date: Dec 2011
Old 04-02-2015 , 16:48   [HELP] Drop bazooka
Reply With Quote #1

Hello guys i've got a problem with my bazooka. Someone can buy bazooka while normal mode and if has a luck can get survivor with bazooka or just buying survivor in shop because i allowing to the buy it. Need to restrict bazooka in everyone survivor players and if someone has survivor bazooka will be dropped.
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_bazooka.sma - 415 views - 19.3 KB)
rybka is offline
Old 04-03-2015, 07:25
thekiller123
This message has been deleted by thekiller123.
rybka
Member
Join Date: Dec 2011
Old 04-03-2015 , 07:55   Re: [HELP] Drop bazooka
Reply With Quote #2

Not Working still can using bazooka while playing survivor
rybka is offline
Old 04-03-2015, 08:12
thekiller123
This message has been deleted by thekiller123.
rybka
Member
Join Date: Dec 2011
Old 04-03-2015 , 08:43   Re: [HELP] Drop bazooka
Reply With Quote #3

Now its working but not completely. Survivor dropping bazooka but can again pick up item and shooting to zombies

Last edited by rybka; 04-03-2015 at 08:43.
rybka is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-03-2015 , 09:03   Re: [HELP] Drop bazooka
Reply With Quote #4

edit yourself:

PHP Code:
public pfn_touch(ptrptd) {
    if(
is_valid_ent(ptr)) {
        new 
classname[32]
        
entity_get_string(ptr,EV_SZ_classname,classname,31)
        
        if(
equal(classname"zp_jp_jetpack")) {
            if(
is_valid_ent(ptd)) {
                new 
id ptd
                
if(id && id 34) {
                    if(!
hasjet[id] && !zp_get_user_zombie(id) && zp_get_user_survivor(id) && is_user_alive(id)) 
--->

PHP Code:
public pfn_touch(ptrptd) {
    if(
is_valid_ent(ptr)) {
        new 
classname[32]
        
entity_get_string(ptr,EV_SZ_classname,classname,31)
        
        if(
equal(classname"zp_jp_jetpack")) {
            if(
is_valid_ent(ptd)) {
                new 
id ptd
                
if(id && id 34) {
                    if(!
hasjet[id] && !zp_get_user_zombie(id) && !zp_get_user_survivor(id) && is_user_alive(id)) 

last line, there was a mistake
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-03-2015 at 09:04.
New.ZM.Life is offline
thekiller123
Member
Join Date: Dec 2012
Old 04-03-2015 , 09:11   Re: [HELP] Drop bazooka
Reply With Quote #5

PHP Code:
 if(!hasjet[id] && !zp_get_user_zombie(id) && !zp_get_user_survivor(id) && is_user_alive(id)) 
OPS! sorry
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_bazooka.sma - 396 views - 19.5 KB)
thekiller123 is offline
rybka
Member
Join Date: Dec 2011
Old 04-03-2015 , 09:18   Re: [HELP] Drop bazooka
Reply With Quote #6

everything is working, thank you guys
rybka is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-03-2015 , 09:41   Re: [HELP] Drop bazooka
Reply With Quote #7

i recommend you using the jetpack + bazooka created by yokomo, since all other jetpack and bazooka plugins will not drop if the player is near a wall or inside a hole
Depresie is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-04-2015 , 08:25   Re: [HELP] Drop bazooka
Reply With Quote #8

i also edited his jetpack(yokomo) and now its a mixture of jetpack and AT4CS gun by dias (homing rocket!)

this is modified version for my server, modify it yourself
Attached Files
File Type: sma Get Plugin or Get Source (zp50_item_jetpack.sma - 513 views - 22.7 KB)
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life 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 06:50.


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