搜索
查看: 3544|回复: 19

[求助]埋包拆包自动奖励插件

[复制链接]
发表于 2006-1-11 03:21:15 | 显示全部楼层 |阅读模式 来自 广西崇左
public plugin_init(){
register_plugin("NoBombScore", "1.0", "MistaGee | 奔の驰")
}

public bomb_explode(planter, defuser){
set_user_frags(planter, get_user_frags(planter) - 3);
return PLUGIN_CONTINUE;
}// Funktion :: Bomb exploded

public bomb_defused(defuser){
set_user_frags(defuser, get_user_frags(defuser) - 3);
return PLUGIN_CONTINUE;
} // Funktion :: Bomb defused


这个是取消埋包拆包 自动奖励三人插件里的代码.
怎么改才可以把它改为加300HP和5000$呢?
发表于 2006-1-11 09:21:59 | 显示全部楼层 来自 黑龙江大庆

回复: 插件求助

把这个
set_user_frags(planter, get_user_frags(planter) - 3);
改成加血
set_user_health
Fun (fun.inc)
Description
set_user_health - Sets player health.
Syntax
set_user_health ( index, health )
Type
Native
Notes
index is a player index from 1 to 32.

和这个加钱
cs_set_user_money
Cstrike (cstrike.inc)
Description
cs_set_user_money - Sets a user's money count.
Syntax
cs_set_user_money ( index , money, [ flash = 1] )
Type
Native
Notes
index is a player index from 1 to 32.

If flash is set to 0, the difference between the old and new money will NOT flash
回复

使用道具 举报

发表于 2006-1-11 10:41:47 | 显示全部楼层 来自 广西河池

回复: 插件求助

麻烦给个改好的源代码出来好吗,谢谢~~:)
回复

使用道具 举报

 楼主| 发表于 2006-1-13 16:48:38 | 显示全部楼层 来自 广西崇左

回复: 插件求助

全部复制????
可以把改过的全文贴上来吗?
我不会看那些代码.谢谢!
回复

使用道具 举报

 楼主| 发表于 2006-1-13 16:50:54 | 显示全部楼层 来自 广西崇左

回复: 插件求助

好像看明白了...是不是将
set_user_frags(planter, get_user_frags(planter) - 3);
替换成您提供的代码即可?

谢谢
回复

使用道具 举报

发表于 2006-5-12 11:59:09 | 显示全部楼层 来自 新疆巴音郭楞州库尔勒

回复: 插件求助

最近我也在找这个插件,原插件挂上了也没什么用处,该奖励还是奖励的
楼主可不可以发一个只奖励3000元的插件呢,谢谢了
回复

使用道具 举报

发表于 2006-5-12 15:26:55 | 显示全部楼层 来自 黑龙江大庆

回复: 插件求助

都是高手阿:super: 强
回复

使用道具 举报

发表于 2006-5-12 16:37:38 | 显示全部楼层 来自 新疆巴音郭楞州库尔勒

回复: [求助]埋包拆包自动奖励插件

哪位高人可不可以发一个nobombscore.amxx插件,设置为放包成功和拆包成功不奖励杀人数,就单纯的奖励3000元的wp这里提供源码
回复

使用道具 举报

发表于 2006-5-12 16:43:16 | 显示全部楼层 来自 新疆巴音郭楞州库尔勒

回复: [求助]埋包拆包自动奖励插件

// 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", "1.0", "MistaGee | 奔の驰")
}
public bomb_explode(planter, defuser){
set_user_frags(planter, get_user_frags(planter) - 3);
return PLUGIN_CONTINUE;
}// Funktion :: Bomb exploded
public bomb_defused(defuser){
set_user_frags(defuser, get_user_frags(defuser) - 3);
return PLUGIN_CONTINUE;
} // Funktion :: Bomb defused

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

发表于 2006-5-12 17:31:20 | 显示全部楼层 来自 新疆昌吉州

回复: [求助]埋包拆包自动奖励插件

二楼的可以给解释的明白些么?要不直接发个改好的源码也行呀!
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表