hlmod.hu
https://hlmod.hu/

Csak deagle
https://hlmod.hu/viewtopic.php?f=9&t=25605
Oldal: 1 / 1

Szerző:  edertomi0811 [ 2016.07.20. 14:18 ]
Hozzászólás témája:  Csak deagle

Halihó!

Valaki tudna-e esetleg segíteni nekem abban, hogy ha bent van a szerveremen a "Csak egy fegyver" nevezetű plugin (Csak egy fegyver) akkor minden körben csak deagle legyen és ne kelljen minden kör elején beírni a konzolba , hogy amx_only deage..

AMX.cfg-be beírva se működik!

Előre is köszi! :D

Pacsi!

Szerző:  voga955 [ 2016.07.20. 14:44 ]
Hozzászólás témája:  Re: Csak deagle

server.cfg-be írd be.

Szerző:  kengurumancs [ 2016.07.20. 14:57 ]
Hozzászólás témája:  Re: Csak deagle

  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fun>
  4.  
  5. public plugin_init() {
  6. RegisterHam(Ham_Spawn, "player", "Eledes", 1)
  7. }
  8.  
  9. public Eledes(id) {
  10. strip_user_weapons(id)
  11. give_item(id, "weapon_deagle");
  12. }

Szerző:  edertomi0811 [ 2016.07.20. 18:18 ]
Hozzászólás témája:  Re: Csak deagle

kengurumancs írta:
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fun>
  4.  
  5. public plugin_init() {
  6. RegisterHam(Ham_Spawn, "player", "Eledes", 1)
  7. }
  8.  
  9. public Eledes(id) {
  10. strip_user_weapons(id)
  11. give_item(id, "weapon_deagle");
  12. }



Hozzá tudnád írni azt a commandot is , hogy max ammója legyen a játékosnak? :)

Szerző:  theglorious [ 2016.07.20. 19:21 ]
Hozzászólás témája:  Re: Csak deagle

  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fun>
  4.  
  5. public plugin_init() {
  6. RegisterHam(Ham_Spawn, "player", "Eledes", 1)
  7. }
  8.  
  9. public Eledes(id) {
  10. strip_user_weapons(id)
  11. give_item(id, "weapon_deagle");
  12. give_item(id,"ammo_50ae");
  13. give_item(id,"ammo_50ae");
  14. give_item(id,"ammo_50ae");
  15. give_item(id,"ammo_50ae");
  16. give_item(id,"ammo_50ae");
  17. }

Szerző:  Pista. [ 2016.07.20. 22:16 ]
Hozzászólás témája:  Re: Csak deagle

  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <cstrike>
  6. #include <fun>
  7. #include <hamsandwich>
  8.  
  9. new const PLUGIN[] = ""
  10. new const VERSION[] = "1.0"
  11. new const AUTHOR[] = "Pista"
  12.  
  13. new const AMMO[] = {
  14.     0,
  15.     35//CSW_DEAGLE
  16. }
  17.  
  18. const NETOLTS = ((1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_KNIFE)|(1<<CSW_C4))
  19.  
  20. public plugin_init() {
  21.     register_plugin(PLUGIN, VERSION, AUTHOR)
  22.    
  23.     register_event("CurWeapon" , "Event_CurWeapon" , "be" , "1=1" )
  24.     RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1)
  25.     // Add your code here...
  26. }
  27. public Event_CurWeapon(id) {
  28.     if(!is_user_alive(id)) {
  29.         new Fegyver = read_data(2)
  30.        
  31.         if(!(NETOLTS & (1<<Fegyver))) {
  32.             cs_set_user_bpammo(id, Fegyver, AMMO[Fegyver])
  33.         }
  34.     }
  35. }
  36. public PlayerSpawn(id) {
  37.     strip_user_weapons(id)
  38.    
  39.     give_item(id, "weapon_deagle")
  40.     cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  41. }

Teszt nem volt.

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