hlmod.hu
https://hlmod.hu/

Kezdő Fegyver Letiltása.
https://hlmod.hu/viewtopic.php?f=29&t=22362
Oldal: 1 / 1

Szerző:  DecToR [2015.10.10. 16:46 ]
Hozzászólás témája:  Kezdő Fegyver Letiltása.

Szevasztok! azt hogy csináljam meg hogy kezdéskor ne kapjon a T: glockot, a CT: USP-t ???
hanem kezdéskor kés legyen csak neki..??

a Buyzonet letiltottam [Az sikerült és nem lehet vásárolni]:DD

Szerző:  |E|xTazYyyy^.~ [2015.10.13. 17:47 ]
Hozzászólás témája:  Re: Kezdő Fegyver Letiltása.

Ő, plugin,plugin,plugin,plugin. :D

Szerző:  mforce [2015.10.13. 17:56 ]
Hozzászólás témája:  Re: Kezdő Fegyver Letiltása.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4. #include <hamsandwich>
  5.  
  6. #define PLUGIN "No pistol"
  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_connected(id) || !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. }
  27. else {
  28. strip_user_weapons(id)
  29. give_item(id, "weapon_knife")
  30. }
  31. }
  32. case 2: {
  33. strip_user_weapons(id)
  34. give_item(id, "weapon_knife")
  35. }
  36. }
  37. }
  38.  

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