hlmod.hu
https://hlmod.hu/

Nem tölti le a vip modelt
https://hlmod.hu/viewtopic.php?f=9&t=17078
Oldal: 1 / 1

Szerző:  FoReSt-TeA [ 2014.08.21. 12:26 ]
Hozzászólás témája:  Nem tölti le a vip modelt

Ez miért nem tölti le a vip modellt ?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. public plugin_init() {
  6. register_plugin("Hun Vip Model", "1", "DeRoiD")
  7. register_event("ResetHUD", "resetModel", "b")
  8.  
  9. return PLUGIN_CONTINUE
  10.  
  11. }
  12.  
  13. public plugin_precache() {
  14. precache_model("models/player/tfl_vip/tfl_vip_ct.mdl")
  15. precache_model("models/player/tfl_vip/tfl_vip_te.mdl")
  16.  
  17. return PLUGIN_CONTINUE
  18. }
  19.  
  20. public resetModel(id, level, cid) {
  21. if (get_user_flags(id) & ADMIN_LEVEL_E) {
  22. new CsTeams:userTeam = cs_get_user_team(id)
  23. if (userTeam == CS_TEAM_T) {
  24. cs_set_user_model(id, "tfl_vip_te")
  25. }
  26. else if(userTeam == CS_TEAM_CT) {
  27. cs_set_user_model(id, "tfl_vip_ct")
  28. }
  29. else {
  30. cs_reset_user_model(id)
  31. }
  32. }
  33.  
  34. return PLUGIN_CONTINUE
  35. }

Szerző:  Metal [ 2014.08.21. 12:32 ]
Hozzászólás témája:  Re: Nem tölti le a vip modelt

Szia

SMA Forráskód: [ Mindet kijelol ]
  1. precache_model("models/player/tfl_vip/tfl_vip_ct.mdl")
  2. precache_model("models/player/tfl_vip/tfl_vip_te.mdl")


helyett

SMA Forráskód: [ Mindet kijelol ]
  1. precache_model("models/player/tfl_vip_ct/tfl_vip_ct.mdl")
  2. precache_model("models/player/tfl_vip_te/tfl_vip_te.mdl")

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