|
发表于 2008-6-23 14:14:28
|
显示全部楼层
|阅读模式
来自 中国–广东–深圳–盐田区
本插件是用死亡鬼魂插件做基楚的.我1.76c+1.5通过测试.
今天早上多得[ wang5219]你的提点.多谢.真的多谢.总算了即我的一块心病
做这些插件真的是很花时间的.我足足用了2个小时才做好.不过效果很好
1.76c版本只须开启<amxmodx> <csstats> 这两个模块即能使用
以后改得更好的话..我会第一时间发上来和大家分享的..
----------------------------------------------------------------
/*
* AMX X Mod script.
* Oringal verison by, ST4life and Platters
* Remade by Orz.net
* This file is provided as is (no warranties).
*/
#include <amxmodx>
#include <csstats>
new dexplo
new gexplo
public plugin_init() {
register_plugin("Death_Timer", "0.3", "ORz.net")
register_event("DeathMsg", "death", "a")
return PLUGIN_CONTINUE
}
public plugin_precache(){
dexplo = precache_model("sprites/hexplo.spr")
gexplo = precache_model("sprites/mushroom.spr")
return PLUGIN_CONTINUE
}
explode(id,sprite,scale,offset){
new vec1[3]
get_user_origin(id,vec1)
//Explosion2
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 12 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_byte( 1 ) // byte (scale in 0.1's) 188
write_byte( 20 ) // byte (framerate)
message_end()
//TE_Explosion
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 3 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2]+offset)
write_short( sprite )
write_byte( scale ) // byte (scale in 0.1's) 188
write_byte( 10 ) // byte (framerate)
write_byte( 0 ) // byte flags
message_end()
}
public death() {
new id=read_data(2)
explode(id,dexplo,10,25)
explode(id,gexplo,10,25)
return PLUGIN_CONTINUE
}
---------------------------------------------------------------------------------------------------- |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|