hlmod.hu
https://hlmod.hu/

admin model
https://hlmod.hu/viewtopic.php?f=9&t=7757
Oldal: 1 / 1

Szerző:  bryan112.cfg [ 2013.03.17. 23:32 ]
Hozzászólás témája:  admin model

Sziasztok!

Valaki be tudna linkelni egy olyan admin model plugint amibe már bele van írva a model elérsi utja ezzel a névvel:

hun_admin_ct
hun_admin_te

ty.

Szerző:  pixxa112 [ 2013.03.17. 23:34 ]
Hozzászólás témája:  Re: admin model

bryan112.cfg írta:
Sziasztok!

Valaki be tudna linkelni egy olyan admin model plugint amibe már bele van írva a model elérsi utja ezzel a névvel:

hun_admin_ct
hun_admin_te

ty.


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/hun_admin_ct/hun_admin_ct.mdl")
  13. precache_model("models/player/hun_admin_te/hun_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, "hun_admin_te")
  23. }
  24. else if(userTeam == CS_TEAM_CT) {
  25. cs_set_user_model(id, "hun_admin_ct")
  26. }
  27. else {
  28. cs_reset_user_model(id)
  29. }
  30. }
  31.  
  32. return PLUGIN_CONTINUE
  33. }


Lájkot nyomj kérlek.

Szerző:  bryan112.cfg [ 2013.03.17. 23:36 ]
Hozzászólás témája:  Re: admin model

ty.

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