hlmod.hu
https://hlmod.hu/

Player modell csere
https://hlmod.hu/viewtopic.php?f=9&t=4533
Oldal: 1 / 1

Szerző:  Delicious [2012.05.27. 13:59 ]
Hozzászólás témája:  Player modell csere

Hy! Lenne egy kérdésem :D! Sima játékosok modelljét hogy lehet ki cserélni (nem adminét)?
Ty ha valaki le írja!

Szerző:  oroszrulett [2012.05.27. 14:01 ]
Hozzászólás témája:  Re: Player modell csere

Kód:
  1. #include <amxmodx>

  2. #include <amxmisc>

  3. #include <cstrike>

  4.  

  5. public plugin_init() {

  6.         register_plugin("AMX Model", "1.1.1", "whitemike")

  7.         register_event("ResetHUD", "resetModel", "b")

  8.         return PLUGIN_CONTINUE

  9. }

  10.  

  11. public plugin_precache() {

  12.         precache_model("models/player/model_ct/model_ct.mdl")

  13.         precache_model("models/player/model_te/model_te.mdl")

  14.  

  15.         return PLUGIN_CONTINUE

  16. }

  17.  

  18. public resetModel(id) {

  19.                 new CsTeams:userTeam = cs_get_user_team(id)

  20.                 if (userTeam == CS_TEAM_T) {

  21.                         cs_set_user_model(id, "model_te")

  22.                 }

  23.                 else if(userTeam == CS_TEAM_CT) {

  24.                         cs_set_user_model(id, "model_ct")

  25.                 }

  26.                 else {

  27.                         cs_reset_user_model(id)

  28.                 }

  29.         }

  30.  

  31.         return PLUGIN_CONTINUE

  32. }

  33.  

Szerző:  Delicious [2012.05.27. 14:27 ]
Hozzászólás témája:  Re: Player modell csere

Köszönöm ;)

Szerző:  Vath [2012.05.27. 15:16 ]
Hozzászólás témája:  Re: Player modell csere

Ván rá pluginom is ha érdekel csak beírod ini-be azt csá. :D

Szerző:  oroszrulett [2012.05.27. 16:51 ]
Hozzászólás témája:  Re: Player modell csere

Javítva : Felesleges index-ek törölve.

Vath : nem tudom, hogy miért kell ez. Már megkapta a választ. Nem tudom, hogy az én módszerem mitől bonyolultabb a tiédnél.

Szerző:  Vath [2012.05.27. 17:52 ]
Hozzászólás témája:  Re: Player modell csere

Rejtély számomra is csak felhívtam a figyelmet hogy ilyen is van...

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