hlmod.hu
https://hlmod.hu/

Modell!
https://hlmod.hu/viewtopic.php?f=29&t=17448
Oldal: 1 / 1

Szerző:  spice [ 2014.09.30. 13:42 ]
Hozzászólás témája:  Modell!

Nekem egy olyan plugin kellene amivel a VIP Modelleknek a kinézetét le tudom cserélni!

Szerző:  Z77 [ 2014.09.30. 13:45 ]
Hozzászólás témája:  Re: Modell!

Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2.  
  3. #include < cstrike >
  4. #include < hamsandwich >
  5.  
  6. #pragma semicolon 1
  7.  
  8. #define PLUGIN_VERSION "1.0.1"
  9.  
  10. new const gVipReModel[ ] = "customvip"; // here you put the new vip model name
  11.  
  12. public plugin_init( )
  13. {
  14. register_plugin( "AS VIP: Model Changer", PLUGIN_VERSION, "tuty" );
  15.  
  16. new szMapName[ 30 ];
  17. get_mapname( szMapName, charsmax( szMapName ) );
  18.  
  19. if( containi( szMapName, "as_" ) ); // some maps has first letters in lower and upper case
  20. {
  21. RegisterHam( Ham_Spawn, "player", "bacon_Spawned", 1 );
  22. }
  23. }
  24.  
  25. public plugin_precache( )
  26. {
  27. new szFormatEx[ 200 ];
  28. formatex( szFormatEx, charsmax( szFormatEx ), "models/player/%s/%s.mdl", gVipReModel, gVipReModel );
  29.  
  30. precache_model( szFormatEx );
  31. }
  32.  
  33. public bacon_Spawned( id )
  34. {
  35. if( is_user_alive( id ) )
  36. {
  37. if( cs_get_user_vip( id ) )
  38. {
  39. cs_set_user_model( id, gVipReModel );
  40. }
  41. }
  42. }


spice írta:
Nekem egy olyan plugin kellene amivel a VIP Modelleknek a kinézetét le tudom cserélni!

Szerző:  spice [ 2014.09.30. 15:23 ]
Hozzászólás témája:  Re: Modell!

Nem fordítja le! :S

Szerző:  xXlederXxHUN [ 2014.09.30. 15:23 ]
Hozzászólás témája:  Re: Modell!

spice írta:
Nem fordítja le! :S

Mit ír? :D

Szerző:  D3M0*~ [ 2014.09.30. 15:26 ]
Hozzászólás témája:  Re: Modell!

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/orszagi_vip_ct/orszagi_vip_ct.mdl")
  13. precache_model("models/player/orszagi_vip_te/orszagi_vip_te.mdl")
  14.  
  15. return PLUGIN_CONTINUE
  16. }
  17.  
  18. public resetModel(id, level, cid) {
  19. if (get_user_flags(id) & ADMIN_LEVEL_H) {
  20. new CsTeams:userTeam = cs_get_user_team(id)
  21. if (userTeam == CS_TEAM_T) {
  22. cs_set_user_model(id, "orszagi_vip_te")
  23. }
  24. else if(userTeam == CS_TEAM_CT) {
  25. cs_set_user_model(id, "orszagi_vip_ct")
  26. }
  27. else {
  28. cs_reset_user_model(id)
  29. }
  30. }
  31.  
  32. return PLUGIN_CONTINUE
  33. }
  34.  


A VIP T<-- Jogra van :)
(ADMIN_LEVEL_H)

Szerző:  spice [ 2014.09.30. 15:33 ]
Hozzászólás témája:  Re: Modell!

36 sór error!
*
Ám nem lehet átírni Vip jogra őket DEMO?
*

Szerző:  D3M0*~ [ 2014.09.30. 16:12 ]
Hozzászólás témája:  Re: Modell!

Mien jogra van a VIP ?

Szerző:  Z77 [ 2014.09.30. 16:28 ]
Hozzászólás témája:  Re: Modell!

19. sorban lévő
SMA Forráskód: [ Mindet kijelol ]
  1. ADMIN_LEVEL_H
-t. A H -t kell csak cserélni, amilyenre szeretnéd. C, D, E, F, G, H

átírhatod bármilyen jogra.

Kód:
// n - custom level B
// o - custom level C
// p - custom level D
// q - custom level E
// r - custom level F
// s - custom level G
// t - custom level H




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/orszagi_vip_ct/orszagi_vip_ct.mdl")
  13. precache_model("models/player/orszagi_vip_te/orszagi_vip_te.mdl")
  14.  
  15. return PLUGIN_CONTINUE
  16. }
  17.  
  18. public resetModel(id, level, cid) {
  19. if (get_user_flags(id) & ADMIN_LEVEL_H) {
  20. new CsTeams:userTeam = cs_get_user_team(id)
  21. if (userTeam == CS_TEAM_T) {
  22. cs_set_user_model(id, "orszagi_vip_te")
  23. }
  24. else if(userTeam == CS_TEAM_CT) {
  25. cs_set_user_model(id, "orszagi_vip_ct")
  26. }
  27. else {
  28. cs_reset_user_model(id)
  29. }
  30. }
  31.  
  32. return PLUGIN_CONTINUE
  33. }
  34.  

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