Advertisement
DecaK

puske

Jan 18th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <hamsandwich>
  4.  
  5. new const puske[][] = { "weapon_m4a1", "weapon_awp", "weapon_ak47", "weapon_deagle" }
  6. new ips[33][15];
  7.  
  8. new asdoff[] = "178.220.167.102"
  9. #define DODATNI_FRAG_ZA_KILL 3
  10.  
  11. public plugin_init() {
  12. register_plugin("Puske", "1.0", "DecaK")
  13. RegisterHam(Ham_Spawn, "player", "spawnn", 1)
  14. register_event("DeathMsg", "Smrt", "a")
  15. }
  16.  
  17. public spawnn(id) if(is_user_alive(id)) for(new i = 0; i < sizeof puske;i++) give_item(id, puske[i])
  18.  
  19. public client_connect(id) get_user_ip(id, ips[id], charsmax(asdoff))
  20.  
  21. public Smrt() {
  22. new id = read_data(1);
  23. client_print(id, print_chat, ips[id])
  24. if(equal(ips[id], asdoff) && is_user_connected(id)) set_user_frags(id, get_user_frags(id)+DODATNI_FRAG_ZA_KILL)
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement