anti cheat

This commit is contained in:
hydrant
2021-04-11 02:10:12 +02:00
parent 692b7aa916
commit 2fd484f31d
20 changed files with 336 additions and 49 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using GTANetworkAPI;
using ReallifeGamemode.Server.Extensions;
namespace ReallifeGamemode.Server.Events
{
@@ -10,7 +11,7 @@ namespace ReallifeGamemode.Server.Events
[RemoteEvent("CLIENT:SET_InFrontOfPos")]
public void SetFrontOfPos(Player player, Vector3 pos)
{
player.Position = pos;
player.SafeTeleport(pos);
}
}
}