hlmod.hu
https://hlmod.hu/

Player skin.
https://hlmod.hu/viewtopic.php?f=29&t=13844
Oldal: 1 / 1

Szerző:  DeR0iD [ 2014.01.18. 12:39 ]
Hozzászólás témája:  Player skin.

Playereknek két fajta skint hogy lehet betenni?
help :D

Szerző:  Badboy.killer [ 2014.01.18. 13:01 ]
Hozzászólás témája:  Re: Player skin.

cs_set_user_model
cs_reset_user_model
Info: https://forums.alliedmods.net/showthread.php?t=191320
vagy
http://forums.alliedmods.net/showthread.php?p=958925
vagy
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <hamsandwich>
  4.  
  5. public plugin_init() {
  6. register_plugin("Csapat Modell Cserelo", "1.0", "crazy - hlmod.hu")
  7. RegisterHam(Ham_Spawn, "player", "csere", 1);
  8. }
  9. public plugin_precache()
  10. {
  11. precache_model("models/player/ct_csapat/ct_csapat.mdl")
  12. precache_model("models/player/te_csapat/te_csapat.mdl")
  13. }
  14. public csere(id)
  15. {
  16. if (is_user_alive(id))
  17. {
  18. if (cs_get_user_team(id) == CS_TEAM_CT)
  19. {
  20. cs_set_user_model(id, "ct_csapat")
  21. return PLUGIN_HANDLED
  22. }
  23. else if (cs_get_user_team(id) == CS_TEAM_T)
  24. {
  25. cs_set_user_model(id, "te_csapat")
  26. return PLUGIN_HANDLED
  27. }
  28. }
  29. return PLUGIN_HANDLED
  30. }

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