29 lines
669 B
C#
29 lines
669 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using GTANetworkAPI;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using reallife_gamemode.Model;
|
|
using reallife_gamemode.Server.Entities;
|
|
|
|
/**
|
|
* @overview Life of German Reallife - Event Login (Login.cs)
|
|
* @author VegaZ
|
|
* @copyright (c) 2008 - 2018 Life of German
|
|
*/
|
|
|
|
namespace reallife_gamemode.Server.Events
|
|
{
|
|
class Connect : Script
|
|
{
|
|
[ServerEvent(Event.PlayerConnected)]
|
|
public void OnPlayerConnected(Client player)
|
|
{
|
|
player.Position = new Vector3(-1883.736, -781.4911, -10);
|
|
player.FreezePosition = true;
|
|
}
|
|
|
|
}
|
|
}
|