Quote:
Originally Posted by javalia
i think u should do that on every respawn of user.
from it will maybe resetted on respawn.
|
Ok, I've tested it out on my test server, you need to delay it a little bit,
because the radar seems to get reset after spawning, here is working code to hide the radar with the hidehud property:
PHP Code:
public OnPluginStart() {
HookEvent("player_spawn", Event_PlayerSpawn);
}
public Action:Event_PlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast) {
new client = GetClientOfUserId(GetEventInt(event, "userid"));
CreateTimer(0.1, PlayerSpawn_Delayed, client);
return Plugin_Continue;
}
public Action:PlayerSpawn_Delayed(Handle:timer, any:client) {
Client_SetHud(client, 1<<4);
return Plugin_Stop;
}
Credit me, when you use this ;)
__________________