#include < amxmodx >
#include < fun >
#include <
cstrike >
#define VERSION "0.1"
#pragma semicolon 1
public plugin_init( )
{
register_plugin( "Fun", VERSION, "iQwake" );
register_event( "DeathMsg", "EV_DeathMsg", "a" );
}
public EV_DeathMsg( )
{
new idKiller = read_data( 1 );
if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrstu" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 10000 );
set_user_health( idKiller, get_user_health( idKiller ) + 70 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 70 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijmnopqrstu" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) +7000 );
set_user_health( idKiller, get_user_health( idKiller ) + 70 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 70 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefijn" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 6500 );
set_user_health( idKiller, get_user_health( idKiller ) + 65 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 65 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefijo" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 5500 );
set_user_health( idKiller, get_user_health( idKiller ) + 55 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 55 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefijp" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 4500 );
set_user_health( idKiller, get_user_health( idKiller ) + 45 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 45 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefijq" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 3000 );
set_user_health( idKiller, get_user_health( idKiller ) + 30 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 30 );
}
}