hlmod.hu
https://hlmod.hu/

admin_model Log error
https://hlmod.hu/viewtopic.php?f=29&t=17900
Oldal: 1 / 1

Szerző:  kenan93 [ 2014.11.01. 18:58 ]
Hozzászólás témája:  admin_model Log error

Valaki segítene hogy hogyan lehetne ezt fixálni?! :) Előre is köszönöm.
...
Admin Modellek
...
Log Error:
[CSTRIKE] Invalid player 7
[AMXX] Run time error 10 (plugin "adminmodel.amxx") (native "cs_get_user_team") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Szerző:  IrOn [ 2014.11.01. 19:47 ]
Hozzászólás témája:  Re: admin_model Log error

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. public plugin_init() {
  6. register_plugin("AMX Admin 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/admin_ct/admin_ct.mdl")
  13. precache_model("models/player/admin_te/admin_te.mdl")
  14.  
  15. return PLUGIN_CONTINUE
  16. }
  17.  
  18. public resetModel(id, level, cid) {
  19. if (get_user_flags(id) & ADMIN_KICK && is_user_alive(id)) {
  20. new CsTeams:userTeam = cs_get_user_team(id)
  21. if (userTeam == CS_TEAM_T) {
  22. cs_set_user_model(id, "admin_te")
  23. }
  24. else if(userTeam == CS_TEAM_CT) {
  25. cs_set_user_model(id, "admin_ct")
  26. }
  27. else {
  28. cs_reset_user_model(id)
  29. }
  30. }
  31.  
  32. return PLUGIN_CONTINUE
  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/