Syntax: Select all
player.hidden_huds = HideHudFlags.RADAR
# and
player.hidden_huds = player.hidden_huds | HideHudFlags.RADAR
Don't seem to work.
Syntax: Select all
player.hidden_huds = HideHudFlags.RADAR
# and
player.hidden_huds = player.hidden_huds | HideHudFlags.RADAR
Syntax: Select all
@PreEvent('player_spawn')
def _player_spawn(game_event):
client = client_manager.find_by_entity_index(index_from_userid(game_event.get_int('userid')))
if client is None:
return EventAction.CONTINUE
client.reset()
client.player.set_godmode(True)
# hide radar
client.player.hidden_huds = client.player.hidden_huds | HideHudFlags.RADAR
return EventAction.CONTINUE
L'In20Cible wrote:This is why. You are using PreEvent and that flag is reset when the players are spawning. Use a regular @Event.
Return to “Plugin Development Support”
Users browsing this forum: No registered users and 61 guests