|
特权插件:本来已经找到了一个猫猫做的VIP特权插件,但是他设置的是VIP自动获得AK和M4,这个比较BT.偶想只设置成VIP每次开局都自动获得一个拆弹夹或者夜视仪之类的.借此吸引玩家加入我们的会员,又不至于过大破坏游戏的平衡性.
昼夜交替:找到了 timer12 和timer16 ,不过这两个插件的雷雨和闪电实在是硬件杀手,效果也不好.小弟只想能昼夜交替就行了.(最好是黑夜能黑到伸手不见五指那种 ^_^ ) 找了个Timer24,可是不知道怎么修改其中昼夜交替的间隔时间.麻烦指教.
:embarrass
昼夜交替插件 timer24 源码如下:
/* Daylight Changerby Downtown1
* Updated and converted to AMXX 0.15(& up)
* by [RED-Designs]
*/
#include <amxmodx>
#include <engine>
public updatelights()
{
new szHours[2]
new iHours
new szLights[2] = "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","[RED-Designs](Downtown1)")
register_cvar("sv_daylight", "1" )
if (get_cvar_float("sv_daylight")==1){
set_task(60.0, "updatelights", 0, "", 0, "b")
}
return PLUGIN_CONTINUE
} |
|