Hat leider auch nicht geholfen...
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Forum);
SetPlayerColor(playerid,weis);
RemovePlayerAttachedObject(playerid, SLOT); //Helm
SendClientMessage(playerid,gold,"~~~~~~~~~~~~~~[Willkommen auf Phybers Reallife Server!]~~~~~~~~~~~~~~~~~~~");
new Loginname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid,Loginname,sizeof(Loginname));
format(string,sizeof(string),"[Betreten] %s [ID: %d] hat den Server betreten!",SpielerName(playerid),playerid);
SendClientMessageToAll(orange,string);
PlayerChance[playerid] = 0;
Knasti[playerid] = 0;
Bankraub[playerid] = 0;
Muellwagentour1[playerid] = 0;
Truckertour1[playerid] = 0;
SetTimerEx("ResetPlayerUpdate", 4000, 1, "d", playerid); // Alle 4 Sekunden sollte passen.
PlayerUpdate[playerid] = true;
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Bus_Bot", true))
{
gPlayerLogged[playerid]=1;
}
}
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
if(dini_Exists(Spielerdatei))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein","Login","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein","Register","Abbrechen") ;
}
new playername[MAX_PLAYER_NAME];
if(strfind(playername, "["))
{
if(dini_Int(Spielerdatei,"Adminlevel")<2)
{
return 1;
}
else
{
SendClientMessage(playerid,rot,"Nur Admins dürfen Clantags haben!");
Kick(playerid);
return 1;
}
}
PDTimer[playerid] = SetTimerEx("PayDay", 60000, 1, "i", playerid);
return 1;
}