Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/SampSharp.Entities/SAMP/Components/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,19 @@ public virtual void GameText(string text, int time, int style)
.GameTextForPlayer(text, time, style);
}

/// <summary>
/// Stop showing a gametext style to a player.
/// </summary>
/// <param name="style">The style of text to hide.</param>
/// <remarks>
/// This function was added in <c>omp v1.1.0.2612</c> and will not work in earlier versions!
/// </remarks>
public virtual void HideGameText(int style)
{
GetComponent<NativePlayer>()
.HideGameTextForPlayer(style);
}

/// <summary>
/// Creates an explosion for this player. Only this player will see explosion and feel its effects. This is useful when you want to isolate explosions
/// from other players or to make them only appear in specific virtual worlds.
Expand Down
6 changes: 6 additions & 0 deletions src/SampSharp.Entities/SAMP/NativeComponents/NativePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,12 @@ public virtual bool GameTextForPlayer(string text, int time, int style)
throw new NativeNotImplementedException();
}

[NativeMethod]
public virtual void HideGameTextForPlayer(int style)
{
throw new NativeNotImplementedException();
}

[NativeMethod]
public virtual bool Kick()
{
Expand Down