hlmod.hu
https://hlmod.hu/

Admin model
https://hlmod.hu/viewtopic.php?f=29&t=11157
Oldal: 1 / 1

Szerző:  nexus [2013.10.01. 20:51 ]
Hozzászólás témája:  Admin model

Olyan plugint szeretnék hogy (admin model)

models/ct_admin_model
models/te_admin_model

betölti ezeket.

Szerző:  Golo [2013.10.01. 20:55 ]
Hozzászólás témája:  Re: Admin model

Küld a modellt és hogy milyen jogra legyen és megcsinálom :)

Szerző:  nexus [2013.10.01. 21:04 ]
Hozzászólás témája:  Re: Admin model

http://www.hlmod.hu/download/file.php?id=103

ő, bocsi egy kis változás csak Ct nek legyen TERRORNAK SEMMI. bocs

Szerző:  demon [2013.10.01. 21:10 ]
Hozzászólás témája:  Re: Admin model

Tessék
A modellt a models/player/elf_byess3 mappába rakd.
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/elf_byess3/elf_byess3.mdl")
  13.  
  14. return PLUGIN_CONTINUE
  15. }
  16.  
  17. public resetModel(id, level, cid) {
  18. if (get_user_flags(id) & ADMIN_KICK) {
  19. new CsTeams:userTeam = cs_get_user_team(id)
  20. if(userTeam == CS_TEAM_CT) {
  21. cs_set_user_model(id, "elf_byess3")
  22. }
  23. else {
  24. cs_reset_user_model(id)
  25. }
  26. }
  27.  
  28. return PLUGIN_CONTINUE
  29. }

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