How to display the new ammount of added money, not the 300.
PHP Code:
#include < amxmodx >
#include < cstrike >
new iMoney;
public plugin_init( ) {
register_plugin( "PLUGIN", "VERSION", "AUTHOR" );
register_event( "DeathMsg", "EventDeathMsg", "a" );
}
public EventDeathMsg( ) {
if( read_data( 3 ) )
iMoney = 500;
else
iMoney = 200;
cs_set_user_money( read_data( 1 ), cs_get_user_money( read_data( 1 ) ) + iMoney );
}