hlmod.hu
https://hlmod.hu/

Admin Skin steamid
https://hlmod.hu/viewtopic.php?f=9&t=21740
Oldal: 1 / 1

Szerző:  slre14 [ 2015.07.28. 10:49 ]
Hozzászólás témája:  Admin Skin steamid

Helló! Kérnék egy olyan plugint ami csak steamidre engedi lecserélni az admin skint
pl vagy csak egy bizonyos admin jogunak cseréli le

Szerző:  ZiT3K [ 2015.07.28. 11:00 ]
Hozzászólás témája:  Re: Admin Skin steamid

Hali!
Ezzel külön jogokra tudsz adni külön CT és TE modelleket:

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

 

STEAMID-RE:

SMA Forráskód: [ Mindet kijelol ]
  1. if(equal(sid, "STEAM_X:X:XXXXXXXX")) {
  2. new CsTeams:userTeam = cs_get_user_team(id)
  3. if (userTeam == CS_TEAM_T) {
  4. cs_set_user_model(id, "modelllllll_t")
  5. }
  6. else if(userTeam == CS_TEAM_CT) {
  7. cs_set_user_model(id, "modelllllll_ct")
  8. }
  9. else {
  10. cs_reset_user_model(id)
  11. }
  12. }

Szerző:  SmaCk [ 2015.07.28. 11:09 ]
Hozzászólás témája:  Re: Admin Skin steamid

Steam ID-re 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/