Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4. #include <hamsandwich>
  5.  
  6. #define PLUGIN "Beneficii Steam"
  7. #define VERSION "1.1"
  8. #define AUTHOR "Andy"
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. RegisterHam(Ham_Spawn, "player", "player_steam", 1);
  13. }
  14.  
  15. public player_steam(id)
  16. {
  17. if(is_user_steam(id) && is_user_alive(id) && user_has_weapon(id, CSW_USP))
  18. {
  19. strip_user_weapons (id)
  20. give_item(id,"weapon_deagle");
  21. cs_set_user_bpammo(id, CSW_DEAGLE, 35);
  22. give_item(id,"weapon_knife");
  23. give_item(id,"weapon_hegrenade");
  24. give_item(id,"weapon_flashbang");
  25. give_item(id,"weapon_flashbang");
  26. give_item(id,"item_assaultsuit");
  27. give_item(id,"item_thighpack");
  28. client_print(id, print_center, "Folosesti steam asa ca primesti bonus.")
  29. }
  30. else if(is_user_steam(id) && is_user_alive(id) && user_has_weapon(id, CSW_GLOCK18))
  31. {
  32. strip_user_weapons (id)
  33. give_item(id,"weapon_deagle");
  34. cs_set_user_bpammo(id, CSW_DEAGLE, 35);
  35. give_item(id,"weapon_knife");
  36. give_item(id,"weapon_hegrenade");
  37. give_item(id,"weapon_flashbang");
  38. give_item(id,"weapon_flashbang");
  39. give_item(id,"item_assaultsuit");
  40. give_item(id,"item_thighpack");
  41. client_print(id, print_center, "Folosesti steam asa ca primesti bonus.")
  42. }
  43. else
  44. {
  45. give_item(id,"weapon_knife");
  46. give_item(id,"weapon_hegrenade");
  47. give_item(id,"weapon_flashbang");
  48. give_item(id,"weapon_flashbang");
  49. give_item(id,"item_assaultsuit");
  50. give_item(id,"item_thighpack");
  51. client_print(id, print_center, "Folosesti steam asa ca primesti bonus.")
  52. }
  53. return HAM_IGNORED;
  54. }
  55.  
  56. stock bool:is_user_steam(id)
  57. {
  58. static dp_pointer
  59. if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
  60. {
  61. server_cmd("dp_clientinfo %d", id)
  62. server_exec()
  63. return (get_pcvar_num(dp_pointer) == 2) ? true : false
  64. }
  65. return false
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement