Raised This Month: $ Target: $400
 0% 

[CSGO] Client Skybox


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sekac
Senior Member
Join Date: Nov 2016
Plugin ID:
5285
Plugin Version:
1.01
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows clients to change their skybox, saves their choice.
    Old 10-20-2021 , 15:17   Re: [CSGO] Client Skybox
    Reply With Quote #1

    If a map uses a 3D skybox you need to disable it first before you can show a 2D skybox.

    Code:
    public void OnClientPostAdminCheck(int client)
    {
        if (!IsFakeClient(client)) 
        {
            CreateTimer(1.0, Timer_DisableSkybox, client);
        }
    }
    
    public Action Timer_DisableSkybox(Handle timer, int client)
    {
    	if (!IsClientInGame(client))
            return Plugin_Stop;
    	
    	SetEntProp(client, Prop_Send, "m_skybox3d.area", 255);
    	
    	return Plugin_Continue;
    }
    sekac is offline
    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 17:44.


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