Add Login Security

This commit is contained in:
VegaZ
2018-09-23 12:16:40 +02:00
parent 1538b41ffb
commit 12486929cf
5 changed files with 46 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
using GTANetworkAPI;
/**
* @overview Life of German Reallife - Event Login (Login.cs)
* @author VegaZ
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Events
{
class Disconnect : Script
{
[ServerEvent(Event.PlayerDisconnected)]
public void OnPlayerDisconnected(Client player)
{
player.SetData("isLoggedIn", false);
}
}
}