hlmod.hu
https://hlmod.hu/

Új kör kezdetekor csak az alap fegyverek
https://hlmod.hu/viewtopic.php?f=29&t=22779
Oldal: 1 / 1

Szerző:  Geza0013 [2015.11.27. 15:37 ]
Hozzászólás témája:  Új kör kezdetekor csak az alap fegyverek

helló. szeretnék egy olyan plugint aminél minden kör kezdetekor elvesznek a fegyverek, és minden körben pisztollyal indulnak az emberek

Szerző:  mforce [2015.11.27. 15:58 ]
Hozzászólás témája:  Re: Új kör kezdetekor csak az alap fegyverek

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4. #include <hamsandwich>
  5.  
  6. #define PLUGIN "Plugin"
  7. #define VERSION "1.0"
  8. #define AUTHOR "mforce"
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. RegisterHam(Ham_Spawn, "player", "spawn_event", 1)
  13. }
  14.  
  15. public spawn_event(id) {
  16. if(!is_user_alive(id)) return;
  17. static team
  18. team = get_user_team(id)
  19. switch(team) {
  20. case 1: {
  21. if(user_has_weapon(id, CSW_C4)) {
  22. strip_user_weapons(id);
  23. give_item(id, "weapon_knife")
  24. give_item(id, "weapon_c4")
  25. cs_set_user_plant(id,1,1)
  26. give_item(id, "weapon_glock18")
  27. }
  28. else {
  29. strip_user_weapons(id)
  30. give_item(id, "weapon_knife")
  31. give_item(id, "weapon_glock18")
  32. }
  33. }
  34. case 2: {
  35. strip_user_weapons(id)
  36. give_item(id, "weapon_knife")
  37. give_item(id, "weapon_usp")
  38. }
  39. }
  40. }
  41.  

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