View Single Post
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 05-26-2017 , 23:26   Re: [CS:GO] Skins Chooser
Reply With Quote #186

Quote:
Originally Posted by weeeishy View Post
I believe the latest update broke the arms fix. They are overlapping. No error logs.
I have edited andi67's verison so it still works for me.

PHP Code:
public Action OnPlayerSpawn(Handle event, const char[] namebool dontBroadcast)
{
    
// Does plugin is enabled?
    
if (GetConVarBool(sc_enable))
    {
        
// Get real player index from event key
        
int client GetClientOfUserId(GetEventInt(event"userid"));
        
        if (!
IsFakeClient(client) && IsValidClient(client))
        {        
            
// Only do this when player select custom skin
            
if(Selected[client] > 0)
            {
                
SetDefaultModels(client);
                
CreateTimer(0.5SetModels client);
            }
        }                
    }

********* EDIT *********
Not working in de_mirage if ct player spawn with no weapon, and pick up a weapon.
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118

Last edited by rogeraabbccdd; 05-27-2017 at 04:18.
rogeraabbccdd is offline