Add Whitelist

This commit is contained in:
VegaZ
2018-10-02 17:41:36 +02:00
parent ffef07a8cd
commit ca53b9702f

View File

@@ -23,6 +23,11 @@ namespace reallife_gamemode.Server.Events
[ServerEvent(Event.PlayerConnected)]
public void OnPlayerConnected(Client player)
{
if(!(player.SocialClubName == "VegasZ") || (player.SocialClubName == "datgame_") || (player.SocialClubName == "xSprite"))
{
player.Kick();
return;
}
player.SetData("isLoggedIn", false);
player.Position = new Vector3(-1883.736, -781.4911, -10);
player.FreezePosition = true;