hlmod.hu
https://hlmod.hu/

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

Szerző:  Charlie224 [ 2014.05.22. 06:58 ]
Hozzászólás témája:  model csere

Sziasztok nekem kéne olyan plugin amiben a modeleket lecserélném (csak 2 model lenne) foci módra 2 csapat skinjét akarom lecserélni....és ne keljen a txt vel időt tölteni, hanem a pluginból töltse be mint, az admin modellt

Szerző:  DeR0iD [ 2014.05.22. 09:38 ]
Hozzászólás témája:  Re: model csere

Cső tessék :
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Jatekos skin"
  6. #define VERSION "1.0"
  7. #define AUTHOR "DeRoiD"
  8.  
  9. new te[] = "models/player/tejatekos/tejatekos.mdl"
  10. new ct[] = "models/player/ctjatekos/ctjatekos.mdl"
  11.  
  12. public plugin_precache() {
  13. precache_model(te)
  14. precache_model(ct)
  15. }
  16. public plugin_init(){
  17. register_plugin(PLUGIN, VERSION, AUTHOR)
  18. RegisterHam(Ham_Spawn, "player", "spawn", 1)
  19. }
  20. public spawn(id)
  21. {
  22. if (is_user_alive(id)){
  23. if(cs_get_user_team(id) == CS_TEAM_T){
  24. cs_set_user_model(id, te)
  25. return PLUGIN_HANDLED
  26. }
  27. else if(cs_get_user_team(id) == CS_TEAM_CT){
  28. cs_set_user_model(id, ct)
  29. return PLUGIN_HANDLED
  30. }
  31. }
  32. return PLUGIN_HANDLED
  33. }

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