chatmeldungen raus mit die viecher
This commit is contained in:
@@ -18,7 +18,5 @@
|
||||
mp.events.add("gotoWaypoint", () => {
|
||||
mp.gui.chat.push("xyz: " + x_saved + " " + y_saved + " " + z_saved);
|
||||
mp.players.local.position = new mp.Vector3(x_saved, y_saved, z_saved);
|
||||
|
||||
//coord.z = mp.game.gameplay.getGroundZFor3dCoord(coord.x, coord.y, i * 50, 0, false); // try calcualte Z
|
||||
});
|
||||
}
|
||||
@@ -22,21 +22,15 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
return;
|
||||
}
|
||||
ChatService.Broadcast("a");
|
||||
|
||||
Entity entity = NAPI.Vehicle.GetVehicleDriver(player.Vehicle);
|
||||
Player target = PlayerService.GetPlayerByNameOrId(entity.Value.ToString());
|
||||
|
||||
|
||||
ChatService.Broadcast("b");
|
||||
|
||||
if (target == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ChatService.Broadcast("c");
|
||||
|
||||
target.TriggerEvent("SERVER:Util_setWaypoint", x, y);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user