#include <sourcemod>
#define HIDE_HUD_RADAR 1<<12
public OnPluginStart()
{
HookEvent("player_spawn", Player_Spawn);
}
public Action Player_Spawn(Handle event, const char[] name, bool dB)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if(client == 0) return;
CreateTimer(0.0, RemoveRadar, client);
}
public Action RemoveRadar(Handle timer, any client)
{
if (GetEntProp(client, Prop_Send, "m_iHideHUD") != HIDE_HUD_RADAR)
{
SetEntProp(client, Prop_Send, "m_iHideHUD", HIDE_HUD_RADAR);
}
}
Mam problem z tym kodem ... Radar pokazuje się na kilka chwil po pojawieniu się gracza. Nie mam już pomysłów jak zrobić by klient nie widział tego przeskoku (jest na początku ... po czym znika po bardzo krótkiej chwili).
Pożądany efekt : Stała niewidoczność radaru.