Raised This Month: $ Target: $400
 0% 

Refresh View Model (CSGO)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 02-24-2019 , 10:07   Refresh View Model (CSGO)
Reply With Quote #1

Yes, this is something I found a long time ago, it served me well for fixing several issues such as gloves overlapping / stacking, arm models not updating instantly (required a respawn) and I am sure there is other uses that somebody may find.

PHP Code:
stock bool RefreshVM(int iClient)
{
    if (!
IsPlayerAlive(iClient)) {
        return 
false;
    }
    
    
Event evEvent CreateEvent("player_spawn"true);
    
    if (
evEvent == null) {
        return 
false;
    }
    
    
evEvent.SetInt("userid"GetClientUserId(iClient));
    
evEvent.FireToClient(iClient);
    
evEvent.Cancel();
    
    return 
true;

Enjoy.

Last edited by SM9; 02-24-2019 at 10:07.
SM9 is offline
 



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 23:24.


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