Raised This Month: $ Target: $400
 0% 

The problem of gas mask


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gregorio99
Member
Join Date: Jun 2013
Old 06-16-2013 , 12:00   The problem of gas mask
Reply With Quote #1

hello looking for a properly functioning gas mask for the entire round on zp version 4.3 please help. I think someone to speak
Thank you
gregorio99 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-16-2013 , 18:05   Re: The problem of gas mask
Reply With Quote #2

search gasmask or gas+mask only in titles.
__________________
ANTICHRISTUS is offline
gregorio99
Member
Join Date: Jun 2013
Old 06-16-2013 , 23:44   Re: The problem of gas mask
Reply With Quote #3

This is the only problem was that I did not find anything maybe you can help me because I'm white I'm very keen on the gas mask because I lost all data on the hard disk as it burned and I could not recover anything so I'll ask for help so you can help me somehow
gregorio99 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-17-2013 , 00:36   Re: The problem of gas mask
Reply With Quote #4

try this
__________________
You will find everything u need :-
Catastrophe is offline
gregorio99
Member
Join Date: Jun 2013
Old 06-17-2013 , 15:29   Re: The problem of gas mask
Reply With Quote #5

just looking for version 4.3 and not 5.0
gregorio99 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 06-17-2013 , 15:53   Re: The problem of gas mask
Reply With Quote #6

Use the first i mean zp_extra_item_gas_mask_2.1 this is for 4.3...
wicho is offline
gregorio99
Member
Join Date: Jun 2013
Old 06-18-2013 , 10:48   Re: The problem of gas mask
Reply With Quote #7

gas mask http://forums.alliedmods.net/showthread.php?t=179410 this link does not work in version 4.3 so please like to me someone could make a gas mask on a full round in version 4.3 I would be very grateful
gregorio99 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-18-2013 , 11:10   Re: The problem of gas mask
Reply With Quote #8

PHP Code:
/*

                           [ZP] Anti Infect Bomb 
                            - other name - 
                               Gas Mask

    Description: 
    [   Removes bombs that is thrown at zombie        ] 
    [   (it will remove everything in range of 150)   ]

    Credits to : 
    [     AmineKyo     ]
    [    Nick Haldem   ]
    [     Excalibur    ]
    [      micapat     ]
    [       Y060N      ]
    
    Version : 
    [2.1 - Final modifying]
*/

#include < amxmodx >
#include < hamsandwich >
#include < engine >
#include < zombieplague >

#define _PLUGIN   "[ZP] Extra item: Gas Mask"
#define _VERSION             "2.1"
#define _AUTHOR           "H.RED.ZONE"

#define _MarkPlayerInMask(%0)   _bitPlayerInMask |= (1 << (%0 & 31))
#define _ClearPlayerInMask(%0)  _bitPlayerInMask &= ~(1 << (%0 & 31))
#define _IsPlayerInMask(%0)     _bitPlayerInMask & (1 << (%0 & 31))

#define _MarkPlayerConnected(%0)  _bitPlayerConnected |= (1 << (%0 & 31))
#define _ClearPlayerConnected(%0) _bitPlayerConnected &= ~(1 << (%0 & 31))
#define _IsPlayerConnected(%0)    _bitPlayerConnected & (1 << (%0 & 31))

#define _MarkPlayerAlive(%0)  _bitPlayerAlive |= (1 << (%0 & 31))
#define _ClearPlayerAlive(%0) _bitPlayerAlive &= ~(1 << (%0 & 31))
#define _IsPlayerAlive(%0)    _bitPlayerAlive & (1 << (%0 & 31))

#define EV_INT_nadetype     EV_INT_flTimeStepSound
#define NADETYPE_INFECTION  1111 

#define COST   20           // Item Cost

new g_itemid_buyremoverh
new g_icon 

new _pcvar_range
    
,_pcvar_after_remove
    
,_pcvar_prefix
    
new _bitPlayerInMask
    
,_bitPlayerAlive
    
,_bitPlayerConnected

new g_MsgSayText
    
,g_MaxPlayers    
    
new const plr_command[][] = {
    
"say /mask",
    
"say_team /mask"    
}    
    
public 
plugin_init() {
    
register_plugin"[ZP] Extra item: Gas Mask""2.1""H.RED.ZONE" )
    
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn")
    
RegisterHam(Ham_Think"grenade""fw_ThinkGrenade"1)
    
    
g_itemid_buyremoverh zp_register_extra_item("Gas Mask" COST ZP_TEAM_HUMAN )
    
    
register_event"HLTV""NewRound""a""1=0""2=0" )
  
    for ( new 
IndexIndex sizeof plr_commandIndex++)
        
register_clcmd(plr_command[Index], "buy_mask")
  
    
_pcvar_range register_cvar"zp_gas_remover_range""200" )
    
_pcvar_after_remove register_cvar"zp_gas_remover_after""1" )
    
_pcvar_prefix register_cvar("zp_gas_mask_prefix""Mask"00.0)
    
    
g_MsgSayText get_user_msgid("SayText");
    
g_MaxPlayers get_maxplayers()
    
g_icon get_user_msgid("StatusIcon"
}

public 
zp_extra_item_selectedplritemid ) {
    if ( 
itemid == g_itemid_buyremoverh ) {
        if( ~
_IsPlayerInMaskplr ) ) {
            
_MarkPlayerInMaskplr )
            
ProtoChat(plr"You now have Gas Mask.")
            
            
Icon_On(plr)
        }    
    }
}

public 
buy_mask(id) {
    new 
ammopacks zp_get_user_ammo_packs(id)
    
    if( 
_IsPlayerInMaskid ) ) {
        
ProtoChat(id"You have Gas Mask.")
    }
    else if( 
ammopacks COST) {
        
_MarkPlayerInMask(id)
        
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) - COST);
    }
    else {
        
ProtoChat(id"You can't buy mask now.")
    }    
}

public 
fw_ThinkGrenadeentity ) {
    if( 
is_valid_ententity ) && entity_get_intentityEV_INT_nadetype ) == NADETYPE_INFECTION  ) { 
        new 
_cvar_range get_pcvar_num_pcvar_range 
        new 
_cvar_after_remove get_pcvar_num_pcvar_after_remove )
        
        for( new 
id id <= g_MaxPlayers id++ ) {
            if( 
_IsPlayerAliveid ) && _IsPlayerInMaskid )) {
                            if( 
get_entity_distanceentityid ) <= _cvar_range ) {
                                
remove_entityentity )
                        
                                if( 
_cvar_after_remove ) {
                                        
_ClearPlayerInMaskid )
                            
                                        
Icon_Off(id)    
                                        
ProtoChat(id"Infect nade is removed, you don't have mask anymore.")
                                }
                            }
                    }
                }
        }
    return 
HAM_IGNORED;
}  

public 
NewRound() {
    
_bitPlayerInMask 0
}

public 
client_connectplr ) {
    
_MarkPlayerConnectedplr )    
}

public 
client_disconnectplr ) {
    
_ClearPlayerConnectedplr )
    
Icon_Offplr )    
}

public 
zp_user_infected_postid ) {
    
_ClearPlayerInMaskid )
    
Icon_Offid )    
}

public 
zp_user_infected_preid ) {
    
_ClearPlayerInMaskid )
    
Icon_Offid )    


public 
Icon_On(plr) {
    
message_beginMSG_ONE_UNRELIABLEg_icon, { 00}, plr );
    
write_byte);
    
write_string"dmg_gas" );
    
write_byte);
    
write_byte255 );
    
write_byte);
    
message_end( );
}
    
public 
Icon_Off(plr) {
    
message_beginMSG_ONE_UNRELIABLEg_icon, { 00}, plr );
    
write_byte);
    
write_string"dmg_gas" );
    
write_byte);
    
write_byte255 );
    
write_byte);
    
message_end( );
}
    
public 
fw_PlayerKilled(plrattackershouldgib) {
    if(
_IsPlayerConnected(plr)) {
        
_ClearPlayerAlive(plr)
    }
}

public 
fw_PlayerSpawn(plr) {
    if(
_IsPlayerConnected(plr)) {
        
_MarkPlayerAlive(plr)
    }
}

ProtoChat (plr, const sFormat[], any:...) {
    static 
iplr plr get_player();
    if ( !
) {
        return 
PLUGIN_HANDLED;
    }
    
    new 
sPrefix[16];
    
get_pcvar_string(_pcvar_prefixsPrefix15);
    
    new 
sMessage[256];
    new 
len formatex(sMessage255"^x01[^x04%s^x01] "sPrefix);
    
vformat(sMessage[len], 255-lensFormat3)
    
sMessage[192] = '^0' 
    
    
Make_SayText(plrisMessage)
    
    return 
PLUGIN_CONTINUE;
}

get_player() {
    for ( new 
plrplr <= g_MaxPlayersplr++) {
        if (
_IsPlayerConnected(plr)) {
            return 
plr;
        }
    }
    return 
PLUGIN_HANDLED
}

Make_SayText(ReceiverSendersMessage[]) {
    if (!
Sender) {
        return 
PLUGIN_HANDLED;
    }
    
message_begin(Receiver MSG_ONE_UNRELIABLE MSG_ALLg_MsgSayText, {0,0,0}, Receiver)
    
write_byte(Sender)
    
write_string(sMessage)
    
message_end()
    
    return 
PLUGIN_CONTINUE;
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang10266\\ f0\\ fs16 \n\\ par }
*/ 
__________________
You will find everything u need :-
Catastrophe is offline
gregorio99
Member
Join Date: Jun 2013
Old 06-18-2013 , 13:59   Re: The problem of gas mask
Reply With Quote #9

if they could let me someone who complicates the sma file. and AMX and I would be very grateful because they simply do not work for me where it gets complicated mobile site files
gregorio99 is offline
gregorio99
Member
Join Date: Jun 2013
Old 06-18-2013 , 16:40   Re: The problem of gas mask
Reply With Quote #10

Please correct some things in the mask

1.disappear this mask (left center of the screen) when you purchase a mask
2.ma be a sign of bought a gas mask protect against bomb zombies
3.with plug-ins to throw the grenade thrown by zombies toward the man disappears
4.is not just disappear August scatter but then has only a person without a mask
5 gas mask is to be only available in one round of a new round I need to buy again.


Very please correct me on this mask those things that are in the points and then I'd be very grateful as if I knew how to write plugins that I did not ask for such a demanding things but I care about this mask and prosibym again to give all the points to realize that I was very grateful to mate again with all my heart please I've noticed some errors and shortcomings

Last edited by gregorio99; 06-19-2013 at 17:02.
gregorio99 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 23:20.


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