hlmod.hu
https://hlmod.hu/

Vip
https://hlmod.hu/viewtopic.php?f=29&t=9832
Oldal: 1 / 1

Szerző:  misu88 [ 2013.08.03. 12:48 ]
Hozzászólás témája:  Vip

Egy vip plugin:
Minden kor elejen: 3HE granat, 1te magozo, olesenkent:10hp, alap hp: 150hp
A vipet t jogra adja.
Ja és vip felirat statban.

Szerző:  Maxi [ 2013.08.03. 13:08 ]
Hozzászólás témája:  Re: Vip

misu88 írta:
Egy vip plugin:
Minden kor elejen: 3HE granat, 1te magozo, olesenkent:10hp, alap hp: 150hp
A vipet t jogra adja.
Ja és vip felirat statban.

Nem tudom melyik a t jog de itt van csak "h" joggal:
SMA Forráskód: [ Mindet kijelol ]
  1. /*
  2. * Keszitette: maxi | Ne lopja' he'!
  3. */
  4.  
  5. #include <amxmodx>
  6. #include <amxmisc>
  7. #include <fun>
  8.  
  9. new PLUGIN[] = "vip"
  10. new VERSION[] = "1.0"
  11. new AUTHOR[] = "maxi"
  12.  
  13. public plugin_init() {
  14. register_plugin("PLUGIN","VERSION","AUTHOR")
  15. register_event("DeathMsg", "oles", "a")
  16. register_logevent("hpg", 2, "1=Round_Start")
  17. }
  18. public oles(id)
  19. {
  20. if(get_user_flags(id) && ADMIN_LEVEL_H)
  21. {
  22. set_user_health(id, get_user_health +10)
  23. }
  24. }
  25. public hpg(id)
  26. {
  27. if(get_user_flags(id) && ADMIN_LEVEL_H)
  28. {
  29. set_user_health(id, 150)
  30. give_item(id, "weapon_hegranade");
  31. give_item(id, "weapon_hegranade");
  32. give_item(id, "weapon_hegranade");
  33. give_item(id, "weapon_sg550");
  34. }
  35. }

Szerző:  CrB [ 2013.08.03. 13:14 ]
Hozzászólás témája:  Re: Vip

Maxié javítva:
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /*
  3. * Keszitette: maxi | Ne lopja' he'!
  4. */
  5.  
  6. #include <amxmodx>
  7. #include <amxmisc>
  8. #include <fun>
  9.  
  10. #define PLUGIN "vip"
  11. #define VERSION "1.0"
  12. #define AUTHOR "maxi"
  13.  
  14. public plugin_init() {
  15. register_plugin("PLUGIN","VERSION","AUTHOR")
  16. register_event("DeathMsg", "oles", "a")
  17. register_logevent("hpg", 2, "1=Round_Start")
  18. }
  19. public oles()
  20. {
  21. if(get_user_flags(read_data(1)) && ADMIN_LEVEL_H && read_data(1) != read_data(2))
  22. {
  23. set_user_health(read_data(1), get_user_health(read_data(1)) +10)
  24. }
  25. }
  26. public hpg(id)
  27. {
  28. if(get_user_flags(id) && ADMIN_LEVEL_H)
  29. {
  30. set_user_health(id, 150)
  31. give_item(id, "weapon_hegranade");
  32. give_item(id, "weapon_hegranade");
  33. give_item(id, "weapon_hegranade");
  34. give_item(id, "weapon_sg550");
  35. }
  36. }
  37.  

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/