Raised This Month: $ Target: $400
 0% 

[Tutorial][CSS] Radar spot edit!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ojmdk476oj
AlliedModders Donor
Join Date: Dec 2009
Old 07-22-2011 , 06:56   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #11

Quote:
Originally Posted by berni View Post
Just for information, since the orange box update it's possible in CS:S to hide the radar completely for players serverside:

PHP Code:
/**
* Sets the Hud flags of a client
*
* @param client        Client index.
* @param flags            Flag to set, use one of the HIDEHUD_ hiding constants
* @noreturn
*/
stock Client_SetHud(clientflags) {
    
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);
}

public 
OnClientPutInServer(client) {

    
Client_SetHud(client, ( 1<<));

This should be executed every spawn, because if the player spawns after it has been set on him the radar will show up again, and.. When this is on you can't change weapon, don't know why.. But i used this code to test it.

PHP Code:
#include <sourcemod>
#pragma semicolon 1

public OnPluginStart()
{
    
RegConsoleCmd("sm_hideradar"hide"Will hide the clients radar");
}

public 
Action:hide(clientargs)
{
    
Client_SetHud(client, ( 1<<));
}

stock Client_SetHud(clientflags)
{
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);

ojmdk476oj 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 18:19.


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