hlmod.hu
https://hlmod.hu/

Human CLASS kés modell?
https://hlmod.hu/viewtopic.php?f=10&t=9320
Oldal: 1 / 1

Szerző:  ltscavo [2013.07.06. 16:40 ]
Hozzászólás témája:  Human CLASS kés modell?

Itt ez az sma. Nos ezt ugye a humanclasses.inib e rakja bele viszont itt nincs olyan "clawmodels", mint a zombiknál, viszont én szeretnék neki berakni külön kést. Tehát van 2 human fajta az egyiknek az alap kés a másiknak pedig amolyan. Ez megoldható?


SMA Forráskód: [ Mindet kijelol ]
  1. /*================================================================================
  2.  
  3. ----------------------------------
  4. -*- [ZP] Class: Human: Classic -*-
  5. ----------------------------------
  6.  
  7. This plugin is part of Zombie Plague Mod and is distributed under the
  8. terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
  9.  
  10. ================================================================================*/
  11.  
  12. #include <amxmodx>
  13. #include <zp50_class_human>
  14.  
  15. // Classic Human Attributes
  16. new const humanclass1_name[] = "Predator Ember"
  17. new const humanclass1_info[] = "HP+++ Gyors"
  18. new const humanclass1_models[][] = { "gign"}
  19. const humanclass1_health = 2000
  20. const Float:humanclass1_speed = 5.0
  21. const Float:humanclass1_gravity = 1.0
  22.  
  23. new g_HumanClassID
  24.  
  25. public plugin_precache()
  26. {
  27. register_plugin("[ZP] Class: Ember: Predator Ember", ZP_VERSION_STRING, "RsN")
  28.  
  29. g_HumanClassID = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
  30. new index
  31. for (index = 0; index < sizeof humanclass1_models; index++)
  32. zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
  33. }
  34.  

Szerző:  Metal [2013.07.09. 09:42 ]
Hozzászólás témája:  Re: Human CLASS kés modell?

Úristen Predator Ember.... nem akarsz beletenni medvedisznóembert? (tudod, félig malac, félig disznó, félig ember)

Kérdésre a válasz: A ZPben készült kód nem készült fel ilyen igények kielégítésére. Írd át, a kódot, hogy fogadja.

Szerző:  CrB [2013.07.09. 09:47 ]
Hozzászólás témája:  Re: Human CLASS kés modell?

Próbáld meg
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /*================================================================================
  3.  
  4.   ----------------------------------
  5.   -*- [ZP] Class: Human: Classic -*-
  6.   ----------------------------------
  7.  
  8.   This plugin is part of Zombie Plague Mod and is distributed under the
  9.   terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
  10.  
  11.   ================================================================================*/
  12.  
  13. #include <amxmodx>
  14. #include <cstrike>
  15. #include <zp50_class_human>
  16. #include <engine>
  17. // Classic Human Attributes
  18. new const humanclass1_name[] = "Predator Ember"
  19. new const humanclass1_info[] = "HP+++ Gyors"
  20. new const humanclass1_models[][] = { "gign"}
  21. const humanclass1_health = 2000
  22. const Float:humanclass1_speed = 5.0
  23. const Float:humanclass1_gravity = 1.0
  24.  
  25. new g_HumanClassID
  26. public plugin_precache()
  27. {
  28. register_plugin("[ZP] Class: Ember: Predator Ember", ZP_VERSION_STRING, "RsN")
  29.  
  30. g_HumanClassID = zp_class_human_register(humanclass1_name,humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
  31. new index
  32. for (index = 0; index < sizeof humanclass1_models; index++)
  33. zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
  34.  
  35. }
  36. public zp_fw_core_spawn_post(plr) {
  37. if(zp_class_human_get_next(plr) == g_HumanClassID) {
  38. if(!zp_core_is_zombie(plr)) {
  39. Event_CurWeapon(plr)
  40. }
  41. }
  42. }
  43. public Event_CurWeapon(id)
  44. {
  45. new weapon = get_user_weapon(id)
  46. if(weapon == CSW_KNIFE)
  47. {
  48. entity_set_string(id, EV_SZ_viewmodel, "models/v_clawmodels.mdl")
  49. }
  50.  
  51. }
  52.  

Szerző:  ltscavo [2013.07.09. 11:38 ]
Hozzászólás témája:  Re: Human CLASS kés modell?

Metal írta:
Úristen Predator Ember.... nem akarsz beletenni medvedisznóembert? (tudod, félig malac, félig disznó, félig ember)

Kérdésre a válasz: A ZPben készült kód nem készült fel ilyen igények kielégítésére. Írd át, a kódot, hogy fogadja.



ezt letöltöttem természetesen nem ez lesz a neve és nem ilyen képességei lesznek tehát:D:D

ezt hova is kellene írnom?

Szerző:  ltscavo [2013.07.09. 11:39 ]
Hozzászólás témája:  Re: Human CLASS kés modell?

crazyboy írta:
Próbáld meg
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /*================================================================================
  3.  
  4.   ----------------------------------
  5.   -*- [ZP] Class: Human: Classic -*-
  6.   ----------------------------------
  7.  
  8.   This plugin is part of Zombie Plague Mod and is distributed under the
  9.   terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
  10.  
  11.   ================================================================================*/
  12.  
  13. #include <amxmodx>
  14. #include <cstrike>
  15. #include <zp50_class_human>
  16. #include <engine>
  17. // Classic Human Attributes
  18. new const humanclass1_name[] = "Predator Ember"
  19. new const humanclass1_info[] = "HP+++ Gyors"
  20. new const humanclass1_models[][] = { "gign"}
  21. const humanclass1_health = 2000
  22. const Float:humanclass1_speed = 5.0
  23. const Float:humanclass1_gravity = 1.0
  24.  
  25. new g_HumanClassID
  26. public plugin_precache()
  27. {
  28. register_plugin("[ZP] Class: Ember: Predator Ember", ZP_VERSION_STRING, "RsN")
  29.  
  30. g_HumanClassID = zp_class_human_register(humanclass1_name,humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
  31. new index
  32. for (index = 0; index < sizeof humanclass1_models; index++)
  33. zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
  34.  
  35. }
  36. public zp_fw_core_spawn_post(plr) {
  37. if(zp_class_human_get_next(plr) == g_HumanClassID) {
  38. if(!zp_core_is_zombie(plr)) {
  39. Event_CurWeapon(plr)
  40. }
  41. }
  42. }
  43. public Event_CurWeapon(id)
  44. {
  45. new weapon = get_user_weapon(id)
  46. if(weapon == CSW_KNIFE)
  47. {
  48. entity_set_string(id, EV_SZ_viewmodel, "models/v_clawmodels.mdl")
  49. }
  50.  
  51. }
  52.  



köszi megpróbálom majd akkor.)

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