hlmod.hu
https://hlmod.hu/

Tulaj skin
https://hlmod.hu/viewtopic.php?f=9&t=7015
Oldal: 1 / 1

Szerző:  TheMesziErik [2013.01.03. 18:25 ]
Hozzászólás témája:  Tulaj skin

Helló!
Próbáltam csinálni egy tulaj skin plugint, de nem tudom miért nem jó.
Itt a forráskód:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define MODEL_ACCESS ADMIN_IMMUNITY
  5.  
  6. public plugin_init() {
  7. register_plugin("Model Changer","1.0","Qwerty Access")
  8. register_event("ResetHUD", "ReseHud", "b")
  9. }
  10.  
  11. public ReseHud(id) {
  12. // firstly, fix those stupid indentation warnings
  13. if (!(get_user_flags(id) & MODEL_ACCESS)) {
  14. return PLUGIN_HANDLED
  15. }
  16. // previously: cs_set_user_model(id,"models/tulaj/tulaj.mdl")
  17. // cs_set_user_model doesn't take a full model path, just the name
  18. cs_set_user_model(id,"tulaj");
  19. return PLUGIN_CONTINUE
  20. }
  21.  
  22. public plugin_precache() {
  23. // previously: precache_model("models/tulaj/tulaj.mdl")
  24. // that isn't the correct path! it has to be in the players directory
  25. precache_model("models/player/tulaj/tulaj.mdl");
  26. }

Szerző:  m0csy652 [2013.01.03. 18:46 ]
Hozzászólás témája:  Re: Tulaj skin

TheMesziErik írta:
Helló!
Próbáltam csinálni egy tulaj skin plugint, de nem tudom miért nem jó.
Itt a forráskód:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define MODEL_ACCESS ADMIN_IMMUNITY
  5.  
  6. public plugin_init() {
  7. register_plugin("Model Changer","1.0","Qwerty Access")
  8. register_event("ResetHUD", "ReseHud", "b")
  9. }
  10.  
  11. public ReseHud(id) {
  12. // firstly, fix those stupid indentation warnings
  13. if (!(get_user_flags(id) & MODEL_ACCESS)) {
  14. return PLUGIN_HANDLED
  15. }
  16. // previously: cs_set_user_model(id,"models/tulaj/tulaj.mdl")
  17. // cs_set_user_model doesn't take a full model path, just the name
  18. cs_set_user_model(id,"tulaj");
  19. return PLUGIN_CONTINUE
  20. }
  21.  
  22. public plugin_precache() {
  23. // previously: precache_model("models/tulaj/tulaj.mdl")
  24. // that isn't the correct path! it has to be in the players directory
  25. precache_model("models/player/tulaj/tulaj.mdl");
  26. }

modellt beraktad ide ?
models/player/tulaj/tulaj.mdl

Szerző:  TheMesziErik [2013.01.03. 18:49 ]
Hozzászólás témája:  Re: Tulaj skin

Igen, le is tölti.

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