AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   War3FT [ Change Skin ] (https://forums.alliedmods.net/showthread.php?t=318641)

MayroN 09-11-2019 15:49

War3FT [ Change Skin ]
 
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;



CrazY. 09-12-2019 08:56

Re: War3FT [ Change Skin ]
 
Hmm, not sure if someone understood what you are talking about.

WISHEXEC 09-13-2019 03:55

Re: War3FT [ Change Skin ]
 
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 ...

MayroN 09-14-2019 18:44

Re: War3FT [ Change Skin ]
 
Quote:

Originally Posted by WISHEXEC (Post 2666802)
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



All times are GMT -4. The time now is 13:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.