Raised This Month: $ Target: $400
 0% 

ammopack problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-30-2009 , 03:12   ammopack problem
Reply With Quote #1

I have a problem with this plugin. I want nemesis to earn ammo pack for 1 kill same goes to survivor.

PHP Code:
#include <amxmodx>
#include <zombieplague>
 
public plugin_init( )
{
    
register_plugin"Survivor, Nemesis Kill Rewards | End Round Reward""1.0""asd" )
    
register_event"DeathMsg""event_death""a" )
}
public 
event_death( )
{
    static 
attacker
    attacker 
read_data)
 
    if ( !
zp_get_user_survivorattacker ) )
        return;
    if ( !
zp_get_user_nemesisattacker ) )
        return;
 
    
zp_set_user_ammo_packsattackerzp_get_user_ammo_packsattacker ) + )

I know it won't work because both attacker is the same but i try this also didn't work.

PHP Code:
#include <amxmodx>
#include <zombieplague>
public plugin_init( )
{
    
register_plugin"Survivor, Nemesis Kill Rewards | End Round Reward""1.0""asd" )
    
register_event"DeathMsg""event_death""a" )
}
 
public 
event_death( )
{
    static 
attacker
    
static attacker2
    attacker 
read_data)
    
attacker2 read_data)
 
    if ( !
zp_get_user_survivorattacker ) )
        return;
    if ( !
zp_get_user_nemesisattacker2 ) )
        return;
 
    
zp_set_user_ammo_packsattackerzp_get_user_ammo_packsattacker ) + )
    
zp_set_user_ammo_packsattacker2zp_get_user_ammo_packsattacker2 ) + )

Mr.Noobie is offline
 


Thread Tools
Display Modes

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 15:07.


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