搜索
查看: 2005|回复: 1

还是start_hp_ar.amxx请教...

[复制链接]
发表于 2008-5-1 14:04:54 | 显示全部楼层 |阅读模式 来自 中国–山东–济南
  1. /* Plugin generated by AMXX-Studio */
  2. #include <amxmodx>
  3. #include <fun>
  4. #define PLUGIN "Starting Health or Armor"
  5. #define VERSION "1.1"
  6. #define AUTHOR "mashihao"
  7. public plugin_init() {
  8. register_plugin("PLUGIN","VERSION","AUTHOR")
  9. register_event("ResetHUD", "new_round", "be")
  10. register_cvar("amx_start_hp","100")
  11. register_cvar("amx_start_ar","0")
  12. return PLUGIN_CONTINUE
  13. }
  14. public new_round(id) {
  15. {
  16. set_user_health(id,get_cvar_num("amx_start_hp"))
  17. if (get_cvar_num("amx_start_ar")==2)
  18. {
  19. give_item(id,"item_kevlar")
  20. }
  21. if (get_cvar_num("amx_start_ar")==1)
  22. {
  23. give_item(id,"item_assaultsuit")
  24. }
  25. return PLUGIN_CONTINUE
  26. }
  27. }
复制代码
这样 只要amx_start_ar设为1或2,即开局给护甲,开局时就会退出
 楼主| 发表于 2008-5-3 03:46:37 | 显示全部楼层 来自 中国–山东–济南

回复: 还是start_hp_ar.amxx请教...

沒人理我呢.....
回复

使用道具 举报

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

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