Skip to content

Commit

Permalink
online players: cleaned up and added notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed May 30, 2018
1 parent a89b479 commit 4b588b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vMenu/menus/OnlinePlayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,17 @@ public void UpdatePlayerlist()
// Set waypoint button is pressed.
else if (item2 == setWaypointBtn)
{
World.WaypointPosition = GetEntityCoords(GetPlayerPed(player.Handle), true);
//Subtitle.Info($"A new waypoint has been set to ~y~{player.Name}~z~.", prefix: "Info:");
if (player.Handle != PlayerPedId())
World.WaypointPosition = GetEntityCoords(GetPlayerPed(player.Handle), true);
else
Notify.Error("You can not set a waypoint to yourself.", true, true);
}
// Spectate player button is pressed.
else if (item2 == spectateBtn)
{
if (player.Handle == PlayerId())
{
//Subtitle.Error("You can ~h~not~h~ spectate yourself!", prefix: "Error:");
Notify.Error("Sorry, you can ~r~~h~not~h~ ~s~spectate yourself!");
Notify.Error("Sorry, you can ~r~~h~not~h~ ~s~spectate yourself!", true, true);
}
else
{
Expand All @@ -176,7 +177,7 @@ public void UpdatePlayerlist()
{
if (player.Handle == PlayerId())
{
Notify.Error("Sorry, you can ~r~~h~not~h~ ~s~summon yourself!");
Notify.Error("Sorry, you can ~r~~h~not~h~ ~s~summon yourself!", true, true);
}
else
{
Expand All @@ -186,7 +187,6 @@ public void UpdatePlayerlist()
// Kill player button is pressed.
else if (item2 == killBtn)
{
//Subtitle.Info($"~y~{player.Name} ~z~has been killed.", prefix: "Info:");
Notify.Success($"Player ~y~<C>{player.Name}</C> ~s~has been killed.");
cf.KillPlayer(player);
}
Expand Down

0 comments on commit 4b588b9

Please sign in to comment.