Quote:
Originally Posted by berni
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(client, flags) {
SetEntProp(client, Prop_Send, "m_iHideHUD", flags);
}
public OnClientPutInServer(client) {
Client_SetHud(client, ( 1<<4 ));
}
|
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(client, args)
{
Client_SetHud(client, ( 1<<3 ));
}
stock Client_SetHud(client, flags)
{
SetEntProp(client, Prop_Send, "m_iHideHUD", flags);
}