public OnPlayerConnect(playerid)
{
new lol[100];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name,sizeof name);
format(lol,sizeof lol,"%s.ini",name);
if(dini_Exists(lol))
{
SendClientMessage(playerid,FABRE,"Verwende: /login ");// Wenn es "lol" gibt
}
else
{
SendClientMessage(playerid,FABRE,"Verwende: /register ");// und wenn nicht
}
ServerInfo[Players] ++;
dini_IntSet(SFile, "PlayersConnected", ServerInfo[Players]);
ServerInfo[TotPlayers] ++;
dini_IntSet(SFile, "TotalConnects", ServerInfo[TotPlayers]);
new string[256];
new playrname[MAX_PLAYER_NAME];
new planame[MAX_PLAYER_NAME];
new connect[128], string2[256];
GetPlayerName(playerid, planame, sizeof(planame));
GetPlayerName(playerid, playrname, sizeof(playrname));
format(connect, sizeof(string), "V-Admin/Users/%s.djson", playrname);
format(string2, sizeof(string2), "V-Admin/Users/%s.djson", playrname);
if(ServerInfo[Locked] == 1)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "Der Server ist geschlossen! (KICKED)");
Kick(playerid);
return 1;
}