|
new msg[222]
format( msg, 221, "警察 %s 正被追捕,身价%i ^n土匪 %s 正被追捕,身价%i", CTname,gWantedmoney, Tname,gWantedmoney );
set_hudmessage( 0, 90, 255, 0.56, 0.72, 1, 6.0, 18.0, 0.5, 0.15, 7) ;
//client_print( 0, print_chat, "[AMXX]CT %s is wanted | T %s is wanted", CTname, Tname );
return PLUGIN_CONTINUE
}
public on_death( id ) {
new killer_id = read_data( 1 ); //Killer id
new victim_id = read_data( 2 ); //Victim id
if( killer_id == gTop_terror || killer_id == gTop_ct ) return PLUGIN_CONTINUE
if( gTop_terror == victim_id ) {
new kname[32], vname[32];
get_user_name( killer_id, kname, 31 ); //get killer name
get_user_name( gTop_terror, vname, 31 ); //get victim name
new money = cs_get_user_money2( killer_id );
cs_set_user_money2( killer_id, money + gWantedmoney );
new msg[222]
format(msg,222,"^x04%s ^x03杀掉了被追捕的土匪^x04 %s^x03, 他获得了 %i", kname, vname, gWantedmoney)
client_color(0,killer_id,msg)
client_cmd(0,"spk misc/du_danceforme,x")
//client_print( 0, print_center, "[AMXX] %s has killed Terrorist %s, he received %i", kname, vname, gWantedmoney );
}
if( gTop_ct == victim_id ) {
new kname[32], vname[32]
get_user_name( killer_id, kname, 31 ); //get killer name
get_user_name( gTop_ct, vname, 31 ); //get victim name
new money = cs_get_user_money2( killer_id );
new msg[222]
cs_set_user_money2( killer_id, money + gWantedmoney );
format(msg,222,"^x04%s ^x03杀掉了被追捕的警察^x04 %s^x03, 他获得了 %i", kname, vname, gWantedmoney)
client_color(0,killer_id,msg)
client_cmd(0,"spk misc/du_danceforme,x")
//client_print( 0, print_center, "[AMXX] %s has killed Counter-Terrorist %s, he received %i", kname, vname, gWantedmoney );
|
|