搜索
楼主: olol

共享:换敌方服装的插件 for amxx

[复制链接]
 楼主| 发表于 2004-8-2 18:15:37 | 显示全部楼层 来自 吉林长春

汉化的文件,自己编译一下

Post by 黄泉
强烈要求楼主提供汉化的~~~我测试了真的很好玩!!!

希望楼主能提供原版sma和汉化过的文件



汉化的不好,多包涵

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

发表于 2004-8-2 18:43:14 | 显示全部楼层 来自 四川乐山
收到,已下载.谢谢楼主,亲一个~~~~ :12:
回复

使用道具 举报

发表于 2004-8-3 07:56:46 | 显示全部楼层 来自 浙江嘉兴
这个插件我在自己的服务器里试了后,我是当T的,搞的CT个个都人人自危啊,CT见了CT都先打一通再说,呵呵,我笑死了!
回复

使用道具 举报

发表于 2004-9-27 03:59:41 | 显示全部楼层 来自 广东深圳
Post by You Die
不过这有点像作弊哦。。。

同意~~同意~~
回复

使用道具 举报

发表于 2004-9-27 10:26:11 | 显示全部楼层 来自 黑龙江齐齐哈尔
我把 BOT 用 bot_stop 1 定住后 打4 换衣服后显示成功后 再用 BOT_STOP 0 解定 但bot 还是打我
回复

使用道具 举报

匿名  发表于 2004-9-29 16:41:59 来自 Invalid
Post by daikatana
我把 BOT 用 bot_stop 1 定住后 打4 换衣服后显示成功后 再用 BOT_STOP 0 解定 但bot 还是打我


BOTo效,BOT不是靠服b辨e橙说摹

f有用的肯定]^,@模M我自己h化使用一段rg了。
发表于 2004-9-30 10:05:47 | 显示全部楼层 来自 黑龙江齐齐哈尔
谢谢 指点
回复

使用道具 举报

 楼主| 发表于 2004-9-30 10:11:56 | 显示全部楼层 来自 吉林长春
我用podbot一切正常
回复

使用道具 举报

发表于 2004-9-30 16:11:50 | 显示全部楼层 来自 黑龙江齐齐哈尔
呵呵 我用的是ZBOT
回复

使用道具 举报

发表于 2004-10-7 11:24:28 | 显示全部楼层 来自 广西柳州
为什么21楼的那个SMA文件我在AMXX编译会出错?请问有编译好的提供吗?要AMXX下的。

D:\GAMES\Cs1.6中文版\cstrike\addons\amxx\scripting>sc covertopsv.sma
Small compiler 2.1.0            Copyright (c) 1997-2002, ITB CompuPhase

covertopsv.sma(1) : error 010: invalid function or declaration

1 Error.

不明白21楼的那个SMA文件有什么不对,总之我从www.amxmodx.org载了一个英文原版编译成功,然后对着修改了输出的文字成中文,再编译也成功。

下面是我自己用英文版改的:

  1. /* AMX ModX script.
  2. *
  3. * CovertOps © 2003, Phreak
  4. * inspired by Krypt-Keep3r
  5. * This file is provided as is (no warranties).
  6. *
  7. * Usage:
  8. *   The Players can use "getclothes" to steal the clothes from
  9. *   corpses.
  10. *   After round end all models are turned back to normal.
  11. *
  12. * Setup:
  13. *   CovertOps can be disabled by setting amx_covertops to 0
  14. *
  15. * Known Bugs:
  16. *   After been switched to the other team (for example by a team balancer)
  17. *   You will get the model you've used in your old team. FIXED by xmdxtremekiller
  18. *
  19. * Version history:
  20. *   v1.0F
  21. *   Converted to amxmodx and fixed bug mentioned as above and also added help in game.
  22. *   v0.2a
  23. *   - increased array size
  24. *   v0.2
  25. *   - added sound when taking clothes
  26. *   - clothes can only be taken one time per round
  27. *   v0.1
  28. *   - initial version
  29. */

  30. #include <amxmodx>
  31. #include <cstrike>

  32. new pl_origins[33][3]
  33. new pl_skins[33][32]
  34. new bool:pl_carmouflaged[33] = {false,...}
  35. new bool:pl_taken[33] = {false,...}

  36. public get_clothes(id) {
  37.     if (get_cvar_num("amx_covertops")==0)
  38.         return PLUGIN_HANDLED
  39.     if (!is_user_alive(id))
  40.         return PLUGIN_HANDLED
  41.     new cur_origin[3],players[32],pl_num=0,dist,last_dist=99999,last_id,model[32]
  42.     get_user_origin(id,cur_origin,0)
  43.     get_players(players,pl_num,"b")
  44.     if (pl_num>0) {
  45.         for (new i=0;i<pl_num;i++) {
  46.             if (players[i]!=id) {
  47.                 dist = get_distance(cur_origin,pl_origins[players[i]])
  48.                 if (dist<last_dist) {
  49.                     last_id = players[i]
  50.                     last_dist = dist
  51.                 }
  52.             }
  53.         }
  54.         if (last_dist<80) {
  55.             if (pl_taken[last_id]) {
  56.                 client_print(id,print_chat,"这些服装已经换过!")
  57.                 return PLUGIN_CONTINUE
  58.             }
  59.             get_user_info(last_id,"model",model,31)
  60.             get_user_info(id,"model",pl_skins[id],31)
  61.             cs_set_user_model(id, model)
  62.             pl_carmouflaged[id] = true
  63.             pl_taken[last_id] = true
  64.             emit_sound(id,CHAN_VOICE,"items/tr_kevlar.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  65.             client_print(id,print_chat,"你现在看起来象一个%s的摸样!",model)
  66.             client_cmd(id,"say_team 我正在做间谍,别打我!")
  67.             return PLUGIN_CONTINUE
  68.         }
  69.     }
  70.     client_print(id,print_chat,"这附近没有服装可以换!")
  71.     return PLUGIN_CONTINUE
  72. }

  73. public player_die() {
  74.     new victim = read_data(2)
  75.     get_user_origin(victim,pl_origins[victim],0)
  76.     if (pl_carmouflaged[victim]) {
  77.         cs_set_user_model(victim, pl_skins[victim])
  78.     }
  79.     return PLUGIN_CONTINUE
  80. }

  81. public new_round(id){
  82.     if (pl_carmouflaged[id]) {
  83.         cs_reset_user_model(id)
  84.         pl_carmouflaged[id] = false
  85.     } else {
  86.         get_user_info(id,"model",pl_skins[id],31)
  87.     }
  88.     pl_taken[id] = false
  89.     return PLUGIN_CONTINUE
  90. }

  91. public covert_help(id){
  92.     client_print(id,print_chat,"你可以把 getclothes band到一个键上,如: bind f getclothes")
  93.     client_print(id,print_chat,"可以是任意键,这样用起来方便的多.")
  94.     return PLUGIN_CONTINUE
  95. }

  96. public plugin_precache(){
  97.     precache_sound( "items/tr_kevlar.wav")
  98.     return PLUGIN_CONTINUE
  99. }

  100. public plugin_init()
  101. {
  102.     register_plugin("间谍服装","1.0F","Xmdxtremekiller")
  103.     register_clcmd("say_team getclothes","covert_help")
  104.     register_clcmd("say /covertops","covert_help")
  105.     register_clcmd("getclothes","get_clothes")
  106.     register_event("ResetHUD", "new_round", "b")
  107.     register_event("DeathMsg","player_die","a")
  108.     register_cvar("amx_covertops","1")
  109.     return PLUGIN_CONTINUE
  110. }
复制代码


但是出现了一个新的问题,就是我编译出来的AMX插件输出文字是是乱码……
将源文件转成ASC以外的格式编译会出错,转成ASC格式编译成功但是文字是乱码,怎么解决?
而且游戏的时候屏幕提示已经换了衣服了,但是实际上还没有换,皮肤还是老样子,看地上的尸体皮肤也没有变化。
回复

使用道具 举报

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

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