Ich habe keine Schleifen im public OnPlayerConnect.
Das einzigste was drin ist, sind Variablen Zurücksetzungen, die TextDraws meines Tachos und kleinere Dinge.
Ansonsten habe ich einige Sachen vom Plugin TSConnector ausgeklammert, weil das Plugin den Serverstart auf einige Sekunden verlangsamt hat.
Da mein public. Aber ich denke nicht das es daran liegen könnte.
Ich habe ja auch schon bisschen nach dem Problem gegoogelt.
C
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, 0xFFFFFFFF);
PlayerInfo[playerid][p_ID] = 0;
PlayerInfo[playerid][p_LoggedIn] = false;
PlayerInfo[playerid][p_TSOnline] = false;
PlayerInfo[playerid][p_Level] = 0;
PlayerInfo[playerid][p_Schritt] = 0;
PlayerInfo[playerid][p_Bargeld] = 0;
PlayerInfo[playerid][p_Kills] = 0;
PlayerInfo[playerid][p_Deaths] = 0;
PlayerInfo[playerid][p_Skin] = 0;
PlayerInfo[playerid][p_Bankkonto] = 0;
PlayerInfo[playerid][p_Admin] = 0;
PlayerInfo[playerid][p_Name] = 0;
Supmobil[playerid] = -1;
GetPlayerName(playerid, PlayerInfo[playerid][p_Name], MAX_PLAYER_NAME);
format(PlayerInfo[playerid][p_UID], 28, "");
new log[145];
format(log, sizeof(log), "%s ist nun mit "S_NAME" verbunden.", GetName(playerid));
Log("ConnectedPlayers", log);
Tacho[playerid][0] = CreatePlayerTextDraw(playerid, 2.666665, 146.844390, "Name:");
PlayerTextDrawLetterSize(playerid, Tacho[playerid][0], 0.196999, 0.965332);
PlayerTextDrawAlignment(playerid, Tacho[playerid][0], 1);
PlayerTextDrawColor(playerid, Tacho[playerid][0], -1);
PlayerTextDrawSetShadow(playerid, Tacho[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, Tacho[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid, Tacho[playerid][0], 51);
PlayerTextDrawFont(playerid, Tacho[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, Tacho[playerid][0], 1);
PlayerTextDrawHide(playerid, Tacho[playerid][0]);
Tacho[playerid][1] = CreatePlayerTextDraw(playerid, 89.333335, 165.766662, "usebox");
PlayerTextDrawLetterSize(playerid, Tacho[playerid][1], 0.000000, 1.619136);
PlayerTextDrawTextSize(playerid, Tacho[playerid][1], -0.333333, 0.000000);
PlayerTextDrawAlignment(playerid, Tacho[playerid][1], 1);
PlayerTextDrawColor(playerid, Tacho[playerid][1], 0);
PlayerTextDrawUseBox(playerid, Tacho[playerid][1], true);
PlayerTextDrawBoxColor(playerid, Tacho[playerid][1], 102);
PlayerTextDrawSetShadow(playerid, Tacho[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, Tacho[playerid][1], 0);
PlayerTextDrawFont(playerid, Tacho[playerid][1], 0);
PlayerTextDrawHide(playerid, Tacho[playerid][1]);
Tacho[playerid][2] = CreatePlayerTextDraw(playerid, 8.666681, 167.585174, "Motor");
PlayerTextDrawLetterSize(playerid, Tacho[playerid][2], 0.162666, 1.031703);
PlayerTextDrawAlignment(playerid, Tacho[playerid][2], 1);
PlayerTextDrawColor(playerid, Tacho[playerid][2], -1);
PlayerTextDrawSetShadow(playerid, Tacho[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, Tacho[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid, Tacho[playerid][2], 51);
PlayerTextDrawFont(playerid, Tacho[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, Tacho[playerid][2], 1);
PlayerTextDrawHide(playerid, Tacho[playerid][2]);
Tacho[playerid][3] = CreatePlayerTextDraw(playerid, 36.333320, 167.585174, "Licht");
PlayerTextDrawLetterSize(playerid, Tacho[playerid][3], 0.162665, 1.031170);
PlayerTextDrawAlignment(playerid, Tacho[playerid][3], 1);
PlayerTextDrawColor(playerid, Tacho[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, Tacho[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, Tacho[playerid][3], 1);
PlayerTextDrawBackgroundColor(playerid, Tacho[playerid][3], 51);
PlayerTextDrawFont(playerid, Tacho[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, Tacho[playerid][3], 1);
PlayerTextDrawHide(playerid, Tacho[playerid][3]);
Tacho[playerid][4] = CreatePlayerTextDraw(playerid, 59.666675, 167.585174, "Tueren");
PlayerTextDrawLetterSize(playerid, Tacho[playerid][4], 0.162665, 1.031170);
PlayerTextDrawAlignment(playerid, Tacho[playerid][4], 1);
PlayerTextDrawColor(playerid, Tacho[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, Tacho[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, Tacho[playerid][4], 1);
PlayerTextDrawBackgroundColor(playerid, Tacho[playerid][4], 51);
PlayerTextDrawFont(playerid, Tacho[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, Tacho[playerid][4], 1);
PlayerTextDrawHide(playerid, Tacho[playerid][4]);
return 1;
}
Alles anzeigen