hlmod.hu
https://hlmod.hu/

Játékos Skin
https://hlmod.hu/viewtopic.php?f=29&t=22767
Oldal: 1 / 1

Szerző:  K1LLeR [2015.11.26. 18:13 ]
Hozzászólás témája:  Játékos Skin

Sziasztok!!.

Plugin:
Játékos Skin csere _EGYEDI_

8-) Terrorista-AntiTerrorista 8-)

Szerző:  elit [2015.11.26. 19:21 ]
Hozzászólás témája:  Re: Játékos Skin

K1LLeR írta:
Sziasztok!!.

Plugin:
Játékos Skin csere _EGYEDI_

8-) Terrorista-AntiTerrorista 8-)



Jatékos Modell Cserélő
https://forums.alliedmods.net/showthrea ... els+connor

Szerző:  rolika95 [2015.11.26. 19:33 ]
Hozzászólás témája:  Re: Játékos Skin

Ere gondolsz?
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Player Models"
  6. #define VERSION "1.0"
  7. #define AUTHOR "unknown"
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. RegisterHam(Ham_Spawn, "player", "spawn_event", 1)
  12. }
  13.  
  14. new const modellek[][] = {
  15. "models/player/tmodell/tmodell.mdl",
  16. "models/player/ctmodell/ctmodell.mdl"
  17. }
  18.  
  19. public plugin_precache() {
  20. for(new i; i<sizeof(modellek);i++) precache_model(modellek[i]);
  21. }
  22.  
  23. public spawn_event(id) {
  24. if(!is_user_alive(id)) return HAM_IGNORED;
  25. static team
  26. team = get_user_team(id)
  27. switch(team) {
  28. case 1: {
  29. if(get_user_flags(id) & ADMIN_BAN) cs_set_user_model(id, "tmodell");
  30. //else if((get_user_flags(id) & ADMIN_LEVEL_H) cs_set_user_model(id, "ctvip");
  31. }
  32. case 2: {
  33. if(get_user_flags(id) & ADMIN_BAN) cs_set_user_model(id, "ctmodell");
  34. //else if((get_user_flags(id) & ADMIN_LEVEL_H) cs_set_user_model(id, "tevip");
  35. }
  36. }
  37. }

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