hlmod.hu
https://hlmod.hu/

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

Szerző:  speeddrix [ 2014.07.21. 00:23 ]
Hozzászólás témája:  Vip model

Sziasztok olyan plugin kellene nekem hogy
b,i, vagy t jogra berak egy vip modelt ami a models/player/vip mappában van előre is köszi

Szerző:  D3M0*~ [ 2014.07.21. 08:20 ]
Hozzászólás témája:  Re: Vip model

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


T jogra van a modell :)

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