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

Subplugin Submission [ZP] Addon + Extra Item: Knockback Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
GraviAnt
Senior Member
Join Date: Oct 2010
Old 03-23-2015 , 16:02   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #21

Can you do that for me?
GraviAnt is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-23-2015 , 18:59   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #22

Sorry, I'm busy right now. Just make a new thread for your request.

Last edited by zmd94; 03-23-2015 at 18:59.
zmd94 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-25-2015 , 16:01   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #23

@GraviAnt
new g_class1 // your zombie class name
new g_class1 // your zombie class name
new g_class1 // your zombie class name

new const g_ViewModel1 [ ] = "models/zombie_plague/v_ your model name"
new const g_WorldModel1 [ ] = "models/zombie_plague/w_ your model name"

new const g_ViewModel2 [ ] = "models/zombie_plague/v_ your model name"
new const g_WorldModel2 [ ] = "models/zombie_plague/w_ your model name"

new const g_ViewModel3 [ ] = "models/zombie_plague/v_ your model name"
new const g_WorldModel3 [ ] = "models/zombie_plague/w_ your model name"

New models need to add in public precache

PHP Code:
public EV_CurWeapon Player )
{
    if ( !
is_user_alive Player ) || !zp_get_user_zombie Player ) )
        return 
PLUGIN_CONTINUE
    
    g_iCurrentWeapon 
Player ] = read_data )
    
    if ( 
g_iJumpingNadeCount Player ] > && g_iCurrentWeapon Player ] == CSW_SMOKEGRENADE )
    {
        if( 
zp_get_user_zombie_class(Player) == g_class1 )
        {
            
set_pev Playerpev_viewmodel2g_ViewModel1 )
            
set_pev Playerpev_weaponmodel2g_WorldModel1 )
        }

        if( 
zp_get_user_zombie_class(Player) == g_class2 )
        {
            
set_pev Playerpev_viewmodel2g_ViewModel2 )
            
set_pev Playerpev_weaponmodel2g_WorldModel2 )
        }

        if( 
zp_get_user_zombie_class(Player) == g_class3 )
        {
            
set_pev Playerpev_viewmodel2g_ViewModel3 )
            
set_pev Playerpev_weaponmodel2g_WorldModel3 )
        }
    
    return 
PLUGIN_CONTINUE


Last edited by Krtola; 03-25-2015 at 16:03.
Krtola is offline
Send a message via Skype™ to Krtola
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-26-2015 , 05:10   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #24

Krtola, have you tried it? I'm not sure, whether it will works or not.
zmd94 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-26-2015 , 05:30   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #25

Quote:
Originally Posted by zmd94 View Post
Krtola, have you tried it? I'm not sure, whether it will works or not.
I have not tried with this plugin,but it worked properly on biohazard mod.
Krtola is offline
Send a message via Skype™ to Krtola
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-26-2015 , 06:03   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #26

Alright. ;)
zmd94 is offline
New and Clueless
Senior Member
Join Date: Dec 2015
Old 12-31-2015 , 17:03   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #27

its working for zp43 fix5a, thanks for the plugin man.
New and Clueless is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-01-2016 , 04:23   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #28

Yes. Just tell me if there are any problems.
zmd94 is offline
Night Wolf90
Member
Join Date: Jan 2016
Old 03-10-2016 , 03:44   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #29

hello
i install this plugin and good work but one problem this plugin give knockback bomb all zombie
but i Not wanting give knockback bomb nemesis-nightclawer-assassin.... plz help me
plz plz plz
Night Wolf90 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 03-10-2016 , 03:55   Re: [ZP] Addon + Extra Item: Knockback Bomb
Reply With Quote #30

Just find below code and change it:
Code:
public zp_user_infected_post ( Player, Infector, Nemesis )
{
    g_iJumpingNadeCount [ Player ] = 0
            
    give_item ( Player, "weapon_smokegrenade" )
    
    emit_sound ( Player, CHAN_ITEM, g_SoundGrenadeBuy[random_num(0,  sizeof g_SoundGrenadeBuy-1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
            
    AmmoPickup ( Player, AMMOID_SM, 1 )
            
    g_iJumpingNadeCount [ Player ] = 1   
}
-->
Code:
public zp_user_infected_post ( Player, Infector, Nemesis )
{
    if(zp_get_user_nemesis(Player))
        return
        
    g_iJumpingNadeCount [ Player ] = 0
            
    give_item ( Player, "weapon_smokegrenade" )
    
    emit_sound ( Player, CHAN_ITEM, g_SoundGrenadeBuy[random_num(0,  sizeof g_SoundGrenadeBuy-1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
            
    AmmoPickup ( Player, AMMOID_SM, 1 )
            
    g_iJumpingNadeCount [ Player ] = 1   
}
zmd94 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 19:29.


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