求~昼夜交替及VIP特权插件~拜各位大大
特权插件:本来已经找到了一个猫猫做的VIP特权插件,但是他设置的是VIP自动获得AK和M4,这个比较BT.偶想只设置成VIP每次开局都自动获得一个拆弹夹或者夜视仪之类的.借此吸引玩家加入我们的会员,又不至于过大破坏游戏的平衡性.昼夜交替:找到了 timer12 和timer16 ,不过这两个插件的雷雨和闪电实在是硬件杀手,效果也不好.小弟只想能昼夜交替就行了.(最好是黑夜能黑到伸手不见五指那种 ^_^ ) 找了个Timer24,可是不知道怎么修改其中昼夜交替的间隔时间.麻烦指教.
:embarrass
昼夜交替插件 timer24 源码如下:
/* Daylight Changerby Downtown1
* Updated and converted to AMXX 0.15(& up)
* by
*/
#include <amxmodx>
#include <engine>
public updatelights()
{
new szHours
new iHours
new szLights = "m"
get_time("%H", szHours, 2)
iHours = str_to_num(szHours)
switch(iHours)
{
case 1:szLights = "c"
case 2:szLights = "d"
case 3:szLights = "e"
case 4:szLights = "g"
case 5:szLights = "i"
case 6:szLights = "k"
case 7:szLights = "m"
case 8:szLights = "o"
case 9:szLights = "q"
case 10:szLights = "s"
case 11:szLights = "u"
case 12:szLights = "w"
case 13:szLights = "u"
case 14:szLights = "s"
case 15:szLights = "q"
case 16:szLights = "o"
case 17:szLights = "m"
case 18:szLights = "k"
case 19:szLights = "i"
case 20:szLights = "g"
case 21:szLights = "e"
case 22:szLights = "d"
case 23:szLights = "c"
case 24:szLights = "b"
default:szLights = "m"
}
set_lights(szLights)
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("Daylight Changer","0.15x","(Downtown1)")
register_cvar("sv_daylight", "1" )
if (get_cvar_float("sv_daylight")==1){
set_task(60.0, "updatelights", 0, "", 0, "b")
}
return PLUGIN_CONTINUE
}
回复: 求~昼夜交替及VIP特权插件~拜各位大大
没人回答啊..........555555再次等候中
回复: 求~昼夜交替及VIP特权插件~拜各位大大
顶到天昏地暗~:em09:回复: 求~昼夜交替及VIP特权插件~拜各位大大
顶到海枯石烂~ :confused:回复: 求~昼夜交替及VIP特权插件~拜各位大大
看你顶得那么辛苦 试一下这个 :burn:回复: 求~昼夜交替及VIP特权插件~拜各位大大
哇LS的插件酷啊回复: 求~昼夜交替及VIP特权插件~拜各位大大
非常感谢 wenlong_115! 由于工作原因,前一段时间没能到点通来报道。现在我马上去测试你给我的插件,结果随后报上。再次感谢!
回复: 求~昼夜交替及VIP特权插件~拜各位大大
很酷啊,不错..................................... 感谢!感谢!
页:
[1]