Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1isg1odsfuhw0 dodana przez Kawon, 09.10.2012 13:28
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101.
#include <amxmodx> #include <fun> #include <hamsandwich> new bool:g_Vip[33]; public plugin_init(){ register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_event("DeathMsg", "DeathMsg", "a"); } public client_authorized(id) { if(get_user_flags(id) & 524288 == 524288) { client_authorized_vip(id); } } public client_authorized_vip(id) { g_Vip[id]=true; } public client_disconnect(id) { if(g_Vip[id]) { client_disconnect_vip(id); } } public client_disconnect_vip(id) { g_Vip[id]=false; } public SpawnedEventPre(id) { if(g_Vip[id]) { if(is_user_alive(id)) { SpawnedEventPreVip(id); } } } public SpawnedEventPreVip(id) { set_user_health(id, get_user_health(id)+100); give_item(id, "p90"); if(get_user_team(id)%2) { give_item(id, "item_thighpack"); } } public DeathMsg() { new killer=read_data(1); new victim=read_data(2); if(is_user_alive(killer) && g_Vip[killer]) { if(get_user_team(killer) != get_user_team(victim)) { new g_Hs=read_data(3); new g_Hp=get_user_health(killer); if(g_Hs) { if(g_Hp < 130) { if(g_Hp + 150 > 200) { new g_Dif = 200 - g_Hp; set_user_health(killer,g_Hp + g_Dif); } else { set_user_health(killer,g_Hp + 150); } } else { if(g_Hp < 200) { if(g_Hp + 100 > 200 ) { new g_Dif = 200 - g_Hp; set_user_health(killer,g_Hp + g_Dif); } else { set_user_health(killer,g_Hp + 100); } } } } } } }
Dodanych wklejek: 4031
Powered By (Pav32) Pastebin © 2011