Post by AE86
set_user_frags
[code]// Don't Count three Fragz on Bomb explosion / defusal
// Coded by MistaGee, requested in the "german" forum by the_venom
#include <amxmodx>
#include <amxmisc>
#include <csx>
public plugin_init(){
register_plugin("NoBombScore", &qu...
我这里也有一个,是国外网站上找的。很奇怪总是时有效时无效,在amxx1.71,和amxx1.75a下都可以编译成功。
// Don't Count three Fragz on Bomb explosion / defusal
// Coded by MistaGee, requested in the "german" forum by the_venom
#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <fun>
public plugin_init(){
register_plugin("NoBombScore", "1.0", "MistaGee")
}
public bomb_explode(planter, defuser){
if(is_running("cstrike")) set_user_frags(planter, get_user_frags(planter) - 3);
return PLUGIN_CONTINUE;
}// Funktion :: Bomb exploded
public bomb_defused(defuser){
if(is_running("cstrike")) set_user_frags(defuser, get_user_frags(defuser) - 3);
return PLUGIN_CONTINUE;
} // Funktion :: Bomb defused |