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

[REQ] Imune to frost and fire


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
myusername
Senior Member
Join Date: Aug 2012
Old 12-20-2012 , 09:51   [REQ] Imune to frost and fire
Reply With Quote #1

Hello alied coders! I need extra item that makes zombie imune to frost or fire. Which means 2 items :p
Im using zp5.0.8


THANK YOU.
__________________
Rest in piece.
myusername is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-20-2012 , 10:36   Re: [REQ] Imune to frost and fire
Reply With Quote #2

try

Fire
PHP Code:
#include < amxmodx >
#include < zp50_items >
#include < zp50_grenade_fire >

new gItem;
new 
bool:gHasImmunity

public plugin_init( )
{
    
register_plugin"[ZP50] Item: Fire Immunity""1.0""De{a}gLe");
    
    
register_event"HLTV""event_round_start""a""1=0""2=0" );
    
    
gItem zp_items_register"Fire Immunity"10 );
}

public 
event_round_startid )
{
    for(new 
0<= 32i++)
    {
        
gHasImmunity false;
    }
}

public 
zp_fw_items_select_preiditemidignorecost )
{
    if( 
gItem != itemid)
            return 
ZP_ITEM_AVAILABLE;
        
    if( !
zp_core_is_zombieid ) )
            return 
ZP_ITEM_DONT_SHOW;
        
    return 
ZP_ITEM_AVAILABLE;
}

public 
zp_fw_items_select_postiditemidignorecost )
{
    if( 
gItem != itemid)
            return;
        
    
gHasImmunity true;         
}

public 
zp_fw_grenade_fire_preid )
{
    
gHasImmunity true;    
    return 
PLUGIN_HANDLED;

Frost
PHP Code:
#include < amxmodx >
#include < zp50_items >
#include < zp50_grenade_frost >

new gItem;
new 
bool:gHasImmunity

public plugin_init( )
{
    
register_plugin"[ZP50] Item: Frost Immunity""1.0""De{a}gLe");
    
    
register_event"HLTV""event_round_start""a""1=0""2=0" );
    
    
gItem zp_items_register"Frost Immunity"10 );
}

public 
event_round_startid )
{
    for(new 
0<= 32i++)
    {
        
gHasImmunity false;
    }
}

public 
zp_fw_items_select_preiditemidignorecost )
{
    if( 
gItem != itemid)
            return 
ZP_ITEM_AVAILABLE;
        
    if( !
zp_core_is_zombieid ) )
            return 
ZP_ITEM_DONT_SHOW;
        
    return 
ZP_ITEM_AVAILABLE;
}

public 
zp_fw_items_select_postiditemidignorecost )
{
    if( 
gItem != itemid)
            return;
        
    
gHasImmunity true;         
}

public 
zp_fw_grenade_frost_preid )
{
    
gHasImmunity true;    
    return 
PLUGIN_HANDLED;


Last edited by TheDS1337; 12-20-2012 at 10:50.
TheDS1337 is offline
myusername
Senior Member
Join Date: Aug 2012
Old 12-21-2012 , 07:46   Re: [REQ] Imune to frost and fire
Reply With Quote #3

Sometimes work, sometimes dont. Also that gives this notification.

Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Symbol is assigned a value that is never used: "gHasImmunity" on line 49
Header size: 464 bytes
Code size: 540 bytes
Data size: 364 bytes
Stack/heap size: 16384 bytes; estimated max. usage=42 cells (168 bytes)
Total requirements: 17752 bytes

1 Warning.
Done.
__________________
Rest in piece.
myusername is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 12-22-2012 , 04:44   Re: [REQ] Imune to frost and fire
Reply With Quote #4

@deagle
wut?
PHP Code:
public zp_fw_grenade_fire_preid )
{
    
gHasImmunity true;    
    return 
PLUGIN_HANDLED;


Last edited by gogicaa; 12-22-2012 at 06:10.
gogicaa is offline
myusername
Senior Member
Join Date: Aug 2012
Old 12-22-2012 , 05:06   Re: [REQ] Imune to frost and fire
Reply With Quote #5

Quote:
Originally Posted by gogicaa View Post
wut?
PHP Code:
public zp_fw_grenade_fire_preid )
{
    
gHasImmunity true;    
    return 
PLUGIN_HANDLED;

what?

Also i need every 30sec give humans to fire and frost grenades.


THANKS
__________________
Rest in piece.

Last edited by myusername; 12-22-2012 at 05:28.
myusername is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 12-22-2012 , 06:18   Re: [REQ] Imune to frost and fire
Reply With Quote #6

Deagle's code makes no sense.
gogicaa is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-22-2012 , 06:24   Re: [REQ] Imune to frost and fire
Reply With Quote #7

I am Noob
TheDS1337 is offline
bat
Veteran Member
Join Date: Jul 2012
Old 01-02-2013 , 09:23   Re: [REQ] Imune to frost and fire
Reply With Quote #8

plzzz conver to Zp 4.3 )
__________________
bat is offline
Send a message via Skype™ to bat
myusername
Senior Member
Join Date: Aug 2012
Old 01-21-2013 , 08:53   Re: [REQ] Imune to frost and fire
Reply With Quote #9

The request is still going...

BUMP!
__________________
Rest in piece.
myusername is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 01-21-2013 , 14:13   Re: [REQ] Imune to frost and fire
Reply With Quote #10

PHP Code:
public zp_fw_grenade_fire_preid )
{
    if(
gHasImmunity true)   
        return 
PLUGIN_HANDLED

gogicaa 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:27.


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