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

Suggestion / Subplugin Request [REQ][ZP 5.0.8] Free Infection Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BlAcK PaNtHeR
Junior Member
Join Date: Jun 2011
Old 01-07-2014 , 08:53   [REQ][ZP 5.0.8] Free Infection Bomb
Reply With Quote #1

Hello,
I tried to use this https://forums.alliedmods.net/showpo...24&postcount=2 , but nemesis also gets a free infection bomb.
Can someone make a free infection bomb plugin for the first zombie but for zombie plague 5.0.8 or somehow fix the plugin above?
BlAcK PaNtHeR is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-07-2014 , 10:16   Re: [REQ][ZP 5.0.8] Free Infection Bomb
Reply With Quote #2

PHP Code:
#include < amxmodx > 
#include < zombieplague > 
#include < fun > 

public plugin_init( ) register_plugin"Infection bomb for 1st Zombie""1.0""AfteR ;)" 

public 
zp_user_infected_postid ){ 
     
    if(
zp_get_user_first_zombie(id) && !zp_get_user_nemesis(id))  give_item(id"weapon_hegrenade"

__________________
You will find everything u need :-
Catastrophe is offline
BlAcK PaNtHeR
Junior Member
Join Date: Jun 2011
Old 01-07-2014 , 10:52   Re: [REQ][ZP 5.0.8] Free Infection Bomb
Reply With Quote #3

Thanks, it's working ok now.

I have another question now:
Is there any way to disable extra items for nemesis ?
Because he can buy infection bombs and other items from extra items..
BlAcK PaNtHeR is offline
XStreamer
Member
Join Date: Mar 2013
Location: Localhost
Old 01-07-2014 , 16:37   Re: [REQ][ZP 5.0.8] Free Infection Bomb
Reply With Quote #4

From what i know when Nemesis Mode starts or someone is turned in Nemesis main plugin (Zombie plague) auto-disable extra-items!
XStreamer is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-08-2014 , 02:48   Re: [REQ][ZP 5.0.8] Free Infection Bomb
Reply With Quote #5

PHP Code:
#include < amxmodx > 
#include < zombieplague > 

public plugin_init( )
{
       
register_plugin"Nemesis extra item block""1.0""catastrophe" 
}

zp_extra_item_selected(iditemid)
{
           if(
zp_get_user_nemesis(id))
           {
           
client_print(idprint_chat"Nemesis cannot buy extra items")
           return 
ZP_PLUGIN_HANDLED
           
}

__________________
You will find everything u need :-

Last edited by Catastrophe; 01-08-2014 at 02:49.
Catastrophe 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 07:08.


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