hlmod.hu
https://hlmod.hu/

Admin modell
https://hlmod.hu/viewtopic.php?f=9&t=20546
Oldal: 1 / 1

Szerző:  apple [2015.05.02. 21:13 ]
Hozzászólás témája:  Admin modell

Hali!
Van ez a plugin be raktam szerverem re és nem jó, pedig az adminom amin teszteltem meg akivel mind a 2 önké "ips" admin volt és b "kick" jog is volt rajtunk és nem adja ránk a modellt!
Le tölteni le tölti de nem adja ránk!

Mi lehet a baja?

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

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