Add Whitelist
This commit is contained in:
@@ -23,6 +23,11 @@ namespace reallife_gamemode.Server.Events
|
|||||||
[ServerEvent(Event.PlayerConnected)]
|
[ServerEvent(Event.PlayerConnected)]
|
||||||
public void OnPlayerConnected(Client player)
|
public void OnPlayerConnected(Client player)
|
||||||
{
|
{
|
||||||
|
if(!(player.SocialClubName == "VegasZ") || (player.SocialClubName == "datgame_") || (player.SocialClubName == "xSprite"))
|
||||||
|
{
|
||||||
|
player.Kick();
|
||||||
|
return;
|
||||||
|
}
|
||||||
player.SetData("isLoggedIn", false);
|
player.SetData("isLoggedIn", false);
|
||||||
player.Position = new Vector3(-1883.736, -781.4911, -10);
|
player.Position = new Vector3(-1883.736, -781.4911, -10);
|
||||||
player.FreezePosition = true;
|
player.FreezePosition = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user