搜索
查看: 1883|回复: 5

本鸟毛第二次写插件又失败了..各位老鸟来批评下..

[复制链接]
发表于 2008-4-19 23:38:18 | 显示全部楼层 |阅读模式 来自 中国–山东
  1. #include <amxmodx>
  2. #include <fun>
  3. #define AUTHOR "Neo Hazard"
  4. #define VERSION ".1"
  5. #define PLUGIN "200 HP"
  6. new maxhp
  7. public plugin_init()
  8. {
  9. register_plugin("PLUGIN","AUTHOR","VERSION")
  10. register_event("HLTV","event_round_start","b","1=0","2=0")
  11. maxhp = register_cvar("max_health","200")
  12. }
  13. public event_round_start(id)
  14. {
  15. set_user_health (id, maxhp)
  16. return PLUGIN_HANDLED
  17. }  
复制代码
 楼主| 发表于 2008-4-20 00:18:16 | 显示全部楼层 来自 中国–山东

回复: 本鸟毛第二次写插件又失败了..各位老鸟来批评下..

咋没人理我啊 伤心..
回复

使用道具 举报

发表于 2008-4-20 12:10:40 | 显示全部楼层 来自 中国–广东–中山

回复: 本鸟毛第二次写插件又失败了..各位老鸟来批评下..

你想在玩家出生的时候给他设置200血是不是?
回复

使用道具 举报

发表于 2008-4-20 12:18:00 | 显示全部楼层 来自 中国–广东–惠州–惠城区

回复: 本鸟毛第二次写插件又失败了..各位老鸟来批评下..

  1. register_event("HLTV","event_round_start","b","1=0","2=0")
复制代码
改成[php]
register_event("ResetHUD","event_round_start","be")
[/php]
回复

使用道具 举报

发表于 2008-4-20 12:52:38 | 显示全部楼层 来自 中国–福建–龙岩

回复: 本鸟毛第二次写插件又失败了..各位老鸟来批评下..

ls正确。。。但是我不明白const flags的具体应用,能说说吗?谢谢!
回复

使用道具 举报

 楼主| 发表于 2008-4-20 17:32:07 | 显示全部楼层 来自 中国–山东–济南

回复: 本鸟毛第二次写插件又失败了..各位老鸟来批评下..

谢~你住济南的话我请你吃饭..
回复

使用道具 举报

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

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