Raised This Month: $73 Target: $400
 18% 

War3FT [ Change Skin ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MayroN
Member
Join Date: Aug 2017
Location: Kyiv
Old 09-11-2019 , 15:49   War3FT [ Change Skin ]
Reply With Quote #1

Welcome.
Such a pleasant thing, not wants to change skin player on the opposite team on subject Chameleon ( Warcraft )

First there was terrible lag in the capture of the Subject player ( Ping jumps) added
PHP Code:
if ( is_user_aliveid ) ) 
If suddenly that, then the Usual start of the game-changes the skin
On Server Start-up-no.

Also tried to leave only
PHP Code:
if ( g_MOD == GAME_CSTRIKE 
still doesn't change

All Function
PHP Code:
// Function changes your skin for ITEM_MOLE and Chameleon
public SHARED_ChangeSkinidiFlag )
{
    
   
// Don't change a bots model - it just confuses the bots!
   
if ( is_user_aliveid ) )
   {
      return;
   }
 
   new 
szSkin[32];
    
   
// Reset the user's model
   
if ( iFlag == SKIN_RESET && p_data_b[id][PB_SKINSWITCHED] )
   {
 
      if ( 
g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
      {
         
cs_reset_user_modelid );
      }
      else if ( 
g_MOD == GAME_DOD )
      {
         
dod_clear_modelid );
      }
 
      
p_data_b[id][PB_SKINSWITCHED] = false;
   }
    
   
// Switch the user's skin to the opposing team
   
else if ( iFlag == SKIN_SWITCH )
   {
      new 
iTeam get_user_teamid );
       
      
// For Counter-Strike or Condition Zero
      
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
      {
         new 
iModelNum random_num0);
          
         
// Condition Zero has one more model!
         
if ( g_MOD == GAME_CZERO )
         {
            
iModelNum random_num0);
         }
          
         
// Save which skin we're going to use
         
if ( iTeam == TEAM_CT )
         {
            
addszSkin31SKIN_T[iModelNum] );
         }
         else
         {
            
addszSkin31SKIN_CT[iModelNum] );
         }
 
         
cs_set_user_modelidszSkin );
 
      }
 
      
// For Day of Defeat
      
else if ( g_MOD == GAME_DOD )
      {
         new 
iModelNum random_num0);
 
         if ( 
iTeam == ALLIES )
         {
            
addszSkin31SKIN_AXIS[iModelNum] );
         }
         else
         {
             
            
// Then we should use a British model
            
if ( dod_get_map_infoMI_ALLIES_TEAM ) == )
            {
               
addszSkin31SKIN_BRIT[0] );
            }
             
            
// Otherwise use American model
            
else
            {
               
addszSkin31SKIN_ALLIES[iModelNum] );
            }
         }
          
         
dod_set_modelidszSkin );
      }
 
      
p_data_b[id][PB_SKINSWITCHED] = true;
   }
 
   return;

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-12-2019 , 08:56   Re: War3FT [ Change Skin ]
Reply With Quote #2

Hmm, not sure if someone understood what you are talking about.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Website | Channel

CrazY. is offline
WISHEXEC
Junior Member
Join Date: Aug 2015
Location: Romania
Old 09-13-2019 , 03:55   Re: War3FT [ Change Skin ]
Reply With Quote #3

The problem is that you use, another plugin that use player skins such as a VIP plugin or i dont know ...

This code is correct, normaly is working ...

Post the list of your plugins ...
__________________
Awesome place here !
WISHEXEC is offline
MayroN
Member
Join Date: Aug 2017
Location: Kyiv
Old 09-14-2019 , 18:44   Re: War3FT [ Change Skin ]
Reply With Quote #4

Quote:
Originally Posted by WISHEXEC View Post
The problem is that you use, another plugin that use player skins such as a VIP plugin or i dont know ...

This code is correct, normaly is working ...

Post the list of your plugins ...
Put the plugin is still substitution of models of players, but I switched off everything, except Warcraft, - the situation didn't change

Code:
Plugins
multimod.amxx
mapchooser_multimod.amxx
random_class_team.amxx
precache_sound_wc.amxx
war3ft.amxx
descriptive_fire_in_the_hole_WC.amxx
rainysnowy.amxx
gas_poison.amxx
backweapons_wc.amxx
weather_system.amxx        
weapon_icon.amxx
bhop.amxx
grentrail2.amxx
public_rules.amxx
spec_banner_wc.amxx
Effects_Killer.amxx
Weapons_Models_WC.amxx
cso_effect_hud.amxx
vampire.amxx
remove_drop_weapons.amxx
ad_manager_wc.amxx
WeaponTrail.amxx
Smoke_Effect.amxx
flashbang_dlight.amxx
weapon_lights.amxx
first_person_death.amxx
imessage.amxx
timeleft.amxx
sniper_crosshairs.amxx
block_message_win.amxx
cs_adrenaline_upd.amxx
damageeffects.amxx
player_model_wc.amxx
wc_timelimit.amxx
wc_buytime.amxx
motd_wc.amxx
c4_smoke.amxx
Death.amxx
drop_money_wc.amxx 
dragons_wc.amxx
bush_wc.amxx
bush2_wc.amxx
tree_wc.amxx
tree2_wc.amxx
snake_animation.amxx
snake_defuse_predictions.amxx
rockthevote_multimod.amxx
Item_bot_war3ft.amxx
medkit_wc.amxx
armor_wc.amxx
bind_command_wc.amxx
box_wc.amxx
lie_flat.amxx 
weaponphys.amxx 
WinTeam_Sprite_WarCraft.amxx
block_sound_win.amxx
bomb_change_message.amxx
bomb_block_beep.amxx
c4_timer_wc.amxx
win_sound_wc.amxx
support_thanks.amxx

Last edited by MayroN; 09-14-2019 at 18:45.
MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:46.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode