找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1086|回复: 5

【已解决】 求一个换武器既可看到武器MAX速度的插件

[复制链接]

该用户从未签到

发表于 2010-5-10 20:55:43 | 显示全部楼层 |阅读模式
本帖最后由 SiMen.K. 于 2010-5-10 21:13 编辑

我记得全称为weapons.amxx
我在网上下了一个汉化版  但是就是找不到英文版的插件
91.189.162.182:27014 就是这个服里的插件
换服务器就可以显示MAX速度的
求英文版啊!!! 谢谢各位!
图1.jpg
就是这个

该用户从未签到

发表于 2010-5-10 21:12:39 | 显示全部楼层
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>

  4. #define PLUGIN "weapons"
  5. #define VERSION "1.0"
  6. #define AUTHOR "SchlumPF"

  7. new g_WeaponUsed[33]

  8. new kz_maxspeedmsg

  9. new g_MaxBPAmmo[31] = {
  10. 0,
  11. 52, //CSW_P228
  12. 0,
  13. 90, //CSW_SCOUT
  14. 1, //CSW_HEGRENADE
  15. 32, //CSW_XM1014
  16. 1, //CSW_C4
  17. 100,//CSW_MAC10
  18. 90, //CSW_AUG
  19. 1, //CSW_SMOKEGRENADE
  20. 120,//CSW_ELITE
  21. 100,//CSW_FIVESEVEN
  22. 100,//CSW_UMP45
  23. 90, //CSW_SG550
  24. 90, //CSW_GALIL
  25. 90, //CSW_FAMAS
  26. 100,//CSW_USP
  27. 120,//CSW_GLOCK18
  28. 30, //CSW_AWP
  29. 120,//CSW_MP5NAVY
  30. 200,//CSW_M249
  31. 32, //CSW_M3
  32. 90, //CSW_M4A1
  33. 120,//CSW_TMP
  34. 90, //CSW_G3SG1
  35. 2, //CSW_FLASHBANG
  36. 35, //CSW_DEAGLE
  37. 90, //CSW_SG552
  38. 90, //CSW_AK47
  39. 0, //CSW_KNIFE
  40. 100//CSW_P90
  41. }

  42. public plugin_init() {
  43. register_plugin(PLUGIN, VERSION, AUTHOR)

  44. kz_maxspeedmsg = register_cvar("kz_maxspeedmsg","1")

  45. register_clcmd("say /weapons","weapons")

  46. register_event("CurWeapon","curweapon","be")
  47. }

  48. public curweapon(id) {
  49. new WeaponNum = read_data(2)
  50. new WeaponActive = read_data(1)
  51. if (WeaponNum && g_MaxBPAmmo[WeaponNum])
  52. {
  53. cs_set_user_bpammo(id, WeaponNum, g_MaxBPAmmo[WeaponNum])
  54. }
  55. // give_item(id,"ammo_45acp")
  56. if ((WeaponNum != g_WeaponUsed[id]) && WeaponActive) // if weapon has changed and its the active weapon continue
  57. {
  58. g_WeaponUsed[id] = WeaponNum

  59. if(get_pcvar_num(kz_maxspeedmsg) == 1) {
  60. new clip, ammo
  61. switch(get_user_weapon(id,clip,ammo))
  62. {
  63. case CSW_SCOUT: clmsg(id,"This weapons maxspeed is 260")
  64. case CSW_C4: clmsg(id,"This weapons maxspeed is 250")
  65. case CSW_P228: clmsg(id,"This weapons maxspeed is 250")
  66. case CSW_MAC10: clmsg(id,"This weapons maxspeed is 250")
  67. case CSW_MP5NAVY: clmsg(id,"This weapons maxspeed is 250")
  68. case CSW_USP: clmsg(id,"This weapons maxspeed is 250")
  69. case CSW_TMP: clmsg(id,"This weapons maxspeed is 250")
  70. case CSW_FLASHBANG: clmsg(id,"This weapons maxspeed is 250")
  71. case CSW_DEAGLE: clmsg(id,"This weapons maxspeed is 250")
  72. case CSW_GLOCK18: clmsg(id,"This weapons maxspeed is 250")
  73. case CSW_SMOKEGRENADE: clmsg(id,"This weapons maxspeed is 250")
  74. case CSW_ELITE: clmsg(id,"This weapons maxspeed is 250")
  75. case CSW_FIVESEVEN: clmsg(id,"This weapons maxspeed is 250")
  76. case CSW_UMP45: clmsg(id,"This weapons maxspeed is 250")
  77. case CSW_HEGRENADE: clmsg(id,"This weapons maxspeed is 250")
  78. case CSW_KNIFE: clmsg(id,"This weapons maxspeed is 250")
  79. case CSW_P90: clmsg(id,"This weapons maxspeed is 245")
  80. case CSW_XM1014: clmsg(id,"This weapons maxspeed is 240")
  81. case CSW_AUG: clmsg(id,"This weapons maxspeed is 240")
  82. case CSW_GALIL: clmsg(id,"This weapons maxspeed is 240")
  83. case CSW_FAMAS: clmsg(id,"This weapons maxspeed is 240")
  84. case CSW_SG552: clmsg(id,"This weapons maxspeed is 235")
  85. case CSW_M3: clmsg(id,"This weapons maxspeed is 230")
  86. case CSW_M4A1: clmsg(id,"This weapons maxspeed is 230")
  87. case CSW_AK47: clmsg(id,"This weapons maxspeed is 221")
  88. case CSW_M249: clmsg(id,"This weapons maxspeed is 220")
  89. case CSW_G3SG1: clmsg(id,"This weapons maxspeed is 210")
  90. case CSW_SG550: clmsg(id,"This weapons maxspeed is 210")
  91. case CSW_AWP: clmsg(id,"This weapons maxspeed is 210")
  92. }
  93. }
  94. }

  95. return PLUGIN_HANDLED
  96. }

  97. public weapons(id) {
  98. if(is_user_alive(id)) {
  99. new bool:weaponsgiven
  100. if(!user_has_weapon(id,CSW_KNIFE))
  101. give_item(id,"weapon_knife")
  102. if(!user_has_weapon(id,CSW_USP)) {
  103. give_item(id,"weapon_usp")
  104. }
  105. if(!user_has_weapon(id,CSW_SCOUT)) {
  106. give_item(id, "weapon_scout")
  107. weaponsgiven = true
  108. }
  109. if(!user_has_weapon(id,CSW_P90)) {
  110. give_item(id, "weapon_p90")
  111. weaponsgiven = true
  112. }
  113. if(!user_has_weapon(id,CSW_FAMAS)) {
  114. give_item(id, "weapon_famas")
  115. weaponsgiven = true
  116. }
  117. if(!user_has_weapon(id,CSW_SG552)) {
  118. give_item(id, "weapon_sg552")
  119. weaponsgiven = true
  120. }
  121. if(!user_has_weapon(id,CSW_M4A1)) {
  122. give_item(id, "weapon_m4a1")
  123. weaponsgiven = true
  124. }
  125. if(!user_has_weapon(id,CSW_M249)) {
  126. give_item(id, "weapon_m249")
  127. weaponsgiven = true
  128. }
  129. if(!user_has_weapon(id,CSW_AK47)) {
  130. give_item(id, "weapon_ak47")
  131. weaponsgiven = true
  132. }
  133. if(!user_has_weapon(id,CSW_AWP)) {
  134. give_item(id, "weapon_awp")
  135. weaponsgiven = true
  136. }
  137. if(weaponsgiven) {
  138. clmsg(id, "You were given some weapons with different speed")
  139. }
  140. }
  141. else {
  142. clmsg(id, "You have to be alive to use this function")
  143. }

  144. return PLUGIN_HANDLED
  145. }

  146. public clmsg(index,const message[]) {
  147. set_hudmessage(255,255,255, -1.0, 0.85,0,6.0, 1.5,0.0,0.0,1)
  148. show_hudmessage(index,message)
  149. return PLUGIN_HANDLED
  150. }
复制代码

该用户从未签到

 楼主| 发表于 2010-5-10 22:29:24 | 显示全部楼层
我不会用代码...直接给个AMXX我自己会用..

该用户从未签到

发表于 2010-5-10 23:53:03 | 显示全部楼层

该用户从未签到

 楼主| 发表于 2010-5-11 00:40:03 | 显示全部楼层
很感谢~

该用户从未签到

发表于 2010-5-11 08:44:25 | 显示全部楼层
打枪可以用吗?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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