hlmod.hu
https://hlmod.hu/

KÉSZ! Adminmodell JOG-ra
https://hlmod.hu/viewtopic.php?f=9&t=19324
Oldal: 2 / 2

Szerző:  ZiT3K [ 2015.02.05. 15:02 ]
Hozzászólás témája:  Re: adminmodell SKIN 2 fájlból áll, akkor hogyan tegyem fel? +

:D Azt látom, így értem, hogy pl.:
- KICK jogosnak külön 1 db T modell + 1 db CT modell
- IMMUNITY jogosnak külön 1 db T modell + 1 db CT modell

SZÓVAL ÖSSZESEN: 4 modellt lehessen betenni

Szerző:  Quantum [ 2015.02.05. 15:55 ]
Hozzászólás témája:  Re: adminmodell SKIN 2 fájlból áll, akkor hogyan tegyem fel? +

ZiT3K írta:
:D Azt látom, így értem, hogy pl.:
- KICK jogosnak külön 1 db T modell + 1 db CT modell
- IMMUNITY jogosnak külön 1 db T modell + 1 db CT modell

SZÓVAL ÖSSZESEN: 4 modellt lehessen betenni


Esetleg?
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. public plugin_init() {
  5. register_plugin("AMX Admin Model", "1.1.1", "whitemike")
  6. register_event("ResetHUD", "resetModel", "b")
  7. return PLUGIN_CONTINUE
  8. }
  9.  
  10. public plugin_precache() {
  11. precache_model("models/player/admin_ct/admin_ct.mdl")
  12. precache_model("models/player/admin_te/admin_te.mdl")
  13. precache_model("models/player/admin_ct/admin1_ct.mdl")
  14. precache_model("models/player/admin_te/admin1_te.mdl")
  15.  
  16. return PLUGIN_CONTINUE
  17. }
  18.  
  19. public resetModel(id, level, cid) {
  20. if(get_user_flags(id) & ADMIN_IMMUNITY) {
  21. new CsTeams:userTeam = cs_get_user_team(id)
  22. if (userTeam == CS_TEAM_T) {
  23. cs_set_user_model(id, "admin1_te")
  24. }
  25. else if(userTeam == CS_TEAM_CT) {
  26. cs_set_user_model(id, "admin1_ct")
  27. }
  28. if(get_user_flags(id) & ADMIN_KICK) {
  29. new CsTeams:userTeam = cs_get_user_team(id)
  30. if (userTeam == CS_TEAM_T) {
  31. cs_set_user_model(id, "admin_te")
  32. }
  33. else if(userTeam == CS_TEAM_CT) {
  34. cs_set_user_model(id, "admin_ct")
  35. }
  36. else {
  37. cs_reset_user_model(id)
  38. }
  39. }
  40. }
  41. }

Szerző:  FloxaY [ 2015.02.05. 15:57 ]
Hozzászólás témája:  Re: adminmodell SKIN 2 fájlból áll, akkor hogyan tegyem fel? +

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. public plugin_init() {
  5. register_plugin("AMX Admin Model", "1.1.1", "whitemike")
  6. register_event("ResetHUD", "resetModel", "b")
  7. return PLUGIN_CONTINUE
  8. }
  9.  
  10. public plugin_precache() {
  11. precache_model("models/player/admin_ct/admin_ct.mdl")
  12. precache_model("models/player/admin_te/admin_te.mdl")
  13. precache_model("models/player/admin_ct/admin1_ct.mdl")
  14. precache_model("models/player/admin_te/admin1_te.mdl")
  15.  
  16. return PLUGIN_CONTINUE
  17. }
  18.  
  19. public resetModel(id, level, cid) {
  20. if(get_user_flags(id) & ADMIN_IMMUNITY) {
  21. new CsTeams:userTeam = cs_get_user_team(id)
  22. if (userTeam == CS_TEAM_T) {
  23. cs_set_user_model(id, "admin1_te")
  24. }
  25. else if(userTeam == CS_TEAM_CT) {
  26. cs_set_user_model(id, "admin1_ct")
  27. }
  28. }
  29. if(get_user_flags(id) & ADMIN_KICK) {
  30. new CsTeams:userTeam = cs_get_user_team(id)
  31. if (userTeam == CS_TEAM_T) {
  32. cs_set_user_model(id, "admin_te")
  33. }
  34. else if(userTeam == CS_TEAM_CT) {
  35. cs_set_user_model(id, "admin_ct")
  36. }
  37. else {
  38. cs_reset_user_model(id)
  39. }
  40. }
  41. }
..........

Szerző:  Bence98007 [ 2015.02.05. 16:41 ]
Hozzászólás témája:  Re: adminmodell SKIN 2 fájlból áll, akkor hogyan tegyem fel? +

xyT.mdl modelleket csak precache-d a kliensnek, és menni fog.
SMA Forráskód: [ Mindet kijelol ]
  1. precache_model("models/player/xy/xyT.mdl")

Szerző:  ZiT3K [ 2015.02.07. 14:50 ]
Hozzászólás témája:  Re: adminmodell SKIN 2 fájlból áll, akkor hogyan tegyem fel? +

Bár nem próbáltam ki 2 fájlos SKINNEL(ami xy.mdl és xyT.mdl-ből áll) csak, olyan SKINNEL, ami 1 fájlból áll(yx.mdl)

DE MŰKÖDIK! Vagyis külön jogra külön skineket tudtam alkalmazni.

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