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( 1 )
if ( !zp_get_user_survivor( attacker ) )
return;
if ( !zp_get_user_nemesis( attacker ) )
return;
zp_set_user_ammo_packs( attacker, zp_get_user_ammo_packs( attacker ) + 1 )
}
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( 1 )
attacker2 = read_data( 1 )
if ( !zp_get_user_survivor( attacker ) )
return;
if ( !zp_get_user_nemesis( attacker2 ) )
return;
zp_set_user_ammo_packs( attacker, zp_get_user_ammo_packs( attacker ) + 1 )
zp_set_user_ammo_packs( attacker2, zp_get_user_ammo_packs( attacker2 ) + 1 )
}