ATAC里的扇耳光函数能不能整合到蹲坑惩罚源码里?
在ATAC里发现扇耳光的一段代码,效果很不错,如果能整合到蹲坑惩罚代码里的确是个很搞笑的蹲坑惩罚插件,可以在AMXX.CFG里定义扇耳光的频率和次数.ATAC里的代码是:
public slap(skIndex[])
{
new kIndex = skIndex
new atac_slap_power = get_cvar_num("atac_slap_power")
if(is_user_alive(kIndex))
{
if(get_user_health(kIndex) <= atac_slap_power)
{
player_slap(kIndex, 0)
}
else
{
player_slap(kIndex, atac_slap_power)
}
}
return PLUGIN_CONTINUE
}
SlapXTimes(player)
{
new splayer
splayer = player
if(is_user_alive(player))
{
set_task(get_cvar_float("atac_slap_freq"), "slap", 0, splayer, 2, "a", get_cvar_num("atac_slap_amount") - 1)
}
}
SlapTo1(player)
{
new user_health = get_user_health(player)
player_slap(player, user_health - 1)
}
SlayNextRound(player)
{
if(!(PlayerFlags & SETTODIE))
{
PlayerFlags += SETTODIE
}
}
原来的anticamping.sma里扇耳光的速度太慢了,不刺激.能不能将这个函数整合到anticamping.sma里面,并且扇耳光到1hp?就是到"蹲坑指数:100%"是执行上面的函数.弄了很久都没能成功,请各位指点!谢谢.
我把完整的ATAC代码和anticamping.sma都放到附件里了.
回复: ATAC里的扇耳光函数能不能整合到蹲坑惩罚源码里?
惩罚时间可以改的不用ATAC的,可以改成快快的打耳光到天上掉下来回复: ATAC里的扇耳光函数能不能整合到蹲坑惩罚源码里?
Post by zhangsheng惩罚时间可以改的不用ATAC的,可以改成快快的打耳光到天上掉下来
你有源码吗?发来试试。谢谢!
回复: ATAC里的扇耳光函数能不能整合到蹲坑惩罚源码里?
你自己测试下,是CS1.5的AMX版本回复: ATAC里的扇耳光函数能不能整合到蹲坑惩罚源码里?
Post by zhangsheng你自己测试下,是CS1.5的AMX版本
可以加载,可蹲坑的时候出现一大堆错误:
L 01/04/2007 - 16:36:37: Run time error 11 (plugin "anticamping.amxx") - debug not enabled!
L 01/04/2007 - 16:36:37: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/04/2007 - 16:36:44: Run time error 11 (plugin "anticamping.amxx") - debug not enabled!
L 01/04/2007 - 16:36:44: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/04/2007 - 16:36:50: Run time error 11 (plugin "anticamping.amxx") - debug not enabled!
L 01/04/2007 - 16:36:50: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/04/2007 - 16:36:56: Run time error 11 (plugin "anticamping.amxx") - debug not enabled!
L 01/04/2007 - 16:36:56: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 01/04/2007 - 16:37:03: Run time error 11 (plugin "anticamping.amxx") - debug not enabled!
L 01/04/2007 - 16:37:03: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes)
然后就被踢出来,提示:
Reliable Channel Overflowed
如何改为AMXX下正常使用?