OnPlayerConnect
#1

The login dialog appears, i don't know why, I am working on a textdraw login system but the login/register dialog appears automatically.

Код:
public OnPlayerConnect(playerid) {

    CharList[playerid][0][Name]=0;
    CharList[playerid][1][Name]=0;
    CharList[playerid][2][Name]=0;
    CharSelected[playerid][Name]=-1;
    DeletePVar(playerid, "CharField");

    for (new i=0; i < MAX_PLAYERS; i++)
    {
    PlayAudioStreamForPlayer(i, "https://k003.kiwi6.com/hotlink/jws2d718tu/welcome.mp3");
    }

// ================ Character List Textdraw

	CharlistTextdraw0[playerid] = CreatePlayerTextDraw(playerid, 410.400329, 136.397705, "BG-Box_trans");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw0[playerid], 0.000000, 16.541070);
	PlayerTextDrawTextSize(playerid, CharlistTextdraw0[playerid], 232.799972, 0.000000);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, CharlistTextdraw0[playerid], 0);
	PlayerTextDrawUseBox(playerid, CharlistTextdraw0[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharlistTextdraw0[playerid], 102);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw0[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw0[playerid], 0);
	PlayerTextDrawFont(playerid, CharlistTextdraw0[playerid], 0);

	CharlistTextdraw1[playerid] = CreatePlayerTextDraw(playerid, 234.800064, 154.311157, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw1[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, CharlistTextdraw1[playerid], 174.000015, 1.991109);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw1[playerid], 2);
	PlayerTextDrawColor(playerid, CharlistTextdraw1[playerid], -5963521);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw1[playerid], 0);
	PlayerTextDrawFont(playerid, CharlistTextdraw1[playerid], 4);

	CharlistTextdraw2[playerid] = CreatePlayerTextDraw(playerid, 245.200057, 137.386657, "My Characters");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw2[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw2[playerid], 1);
	PlayerTextDrawColor(playerid, CharlistTextdraw2[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw2[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharlistTextdraw2[playerid], 51);
	PlayerTextDrawFont(playerid, CharlistTextdraw2[playerid], 2);
	PlayerTextDrawSetProportional(playerid, CharlistTextdraw2[playerid], 1);

	CharlistTextdraw3[playerid] = CreatePlayerTextDraw(playerid, 320.799957, 171.733215, "Empty_Slot");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw3[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw3[playerid], 2);
	PlayerTextDrawColor(playerid, CharlistTextdraw3[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw3[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw3[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharlistTextdraw3[playerid], 51);
	PlayerTextDrawFont(playerid, CharlistTextdraw3[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharlistTextdraw3[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharlistTextdraw3[playerid], true);

	CharlistTextdraw4[playerid] = CreatePlayerTextDraw(playerid, 245.999954, 167.751098, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw4[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, CharlistTextdraw4[playerid], 148.800018, 23.893341);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw4[playerid], 1);
	PlayerTextDrawColor(playerid, CharlistTextdraw4[playerid], 255);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw4[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw4[playerid], 0);
	PlayerTextDrawFont(playerid, CharlistTextdraw4[playerid], 4);

	CharlistTextdraw5[playerid] = CreatePlayerTextDraw(playerid, 246.199966, 204.591033, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw5[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, CharlistTextdraw5[playerid], 148.800018, 23.893341);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw5[playerid], 1);
	PlayerTextDrawColor(playerid, CharlistTextdraw5[playerid], 255);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw5[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw5[playerid], 0);
	PlayerTextDrawFont(playerid, CharlistTextdraw5[playerid], 4);

	CharlistTextdraw6[playerid] = CreatePlayerTextDraw(playerid, 246.799972, 243.422149, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw6[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, CharlistTextdraw6[playerid], 148.800018, 23.893341);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw6[playerid], 1);
	PlayerTextDrawColor(playerid, CharlistTextdraw6[playerid], 255);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw6[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw6[playerid], 0);
	PlayerTextDrawFont(playerid, CharlistTextdraw6[playerid], 4);

	CharlistTextdraw7[playerid] = CreatePlayerTextDraw(playerid, 320.999969, 207.577590, "Empty_Slot");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw7[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw7[playerid], 2);
	PlayerTextDrawColor(playerid, CharlistTextdraw7[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw7[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw7[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharlistTextdraw7[playerid], 51);
	PlayerTextDrawFont(playerid, CharlistTextdraw7[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharlistTextdraw7[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharlistTextdraw7[playerid], true);

	CharlistTextdraw8[playerid] = CreatePlayerTextDraw(playerid, 321.199981, 245.910964, "Empty_Slot");
	PlayerTextDrawLetterSize(playerid, CharlistTextdraw8[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharlistTextdraw8[playerid], 2);
	PlayerTextDrawColor(playerid, CharlistTextdraw8[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharlistTextdraw8[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharlistTextdraw8[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharlistTextdraw8[playerid], 51);
	PlayerTextDrawFont(playerid, CharlistTextdraw8[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharlistTextdraw8[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharlistTextdraw8[playerid], true);

// Character details Box (Spawn / Delete / Back) Textdraws

	CharTextdraw0[playerid] = CreatePlayerTextDraw(playerid, 447.720489, 162.381896, "usebox");
	PlayerTextDrawLetterSize(playerid, CharTextdraw0[playerid], 0.000000, 14.136722);
	PlayerTextDrawTextSize(playerid, CharTextdraw0[playerid], 190.880111, 0.000000);
	PlayerTextDrawAlignment(playerid, CharTextdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw0[playerid], 0);
	PlayerTextDrawUseBox(playerid, CharTextdraw0[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharTextdraw0[playerid], 102);
	PlayerTextDrawSetShadow(playerid, CharTextdraw0[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw0[playerid], 0);
	PlayerTextDrawFont(playerid, CharTextdraw0[playerid], 2);

	CharTextdraw1[playerid] = CreatePlayerTextDraw(playerid, 320.759674, 163.271240, "Loading...");
	PlayerTextDrawLetterSize(playerid, CharTextdraw1[playerid], 0.285599, 1.269475);
	PlayerTextDrawTextSize(playerid, CharTextdraw1[playerid], -49.240001, 3.185777);
	PlayerTextDrawAlignment(playerid, CharTextdraw1[playerid], 2);
	PlayerTextDrawColor(playerid, CharTextdraw1[playerid], -1);
	PlayerTextDrawUseBox(playerid, CharTextdraw1[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharTextdraw1[playerid], 0);
	PlayerTextDrawSetShadow(playerid, CharTextdraw1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw1[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw1[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw1[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharTextdraw1[playerid], 1);

	CharTextdraw2[playerid] = CreatePlayerTextDraw(playerid, 192.879898, 177.457763, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, CharTextdraw2[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, CharTextdraw2[playerid], 253.040084, 1.841765);
	PlayerTextDrawAlignment(playerid, CharTextdraw2[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw2[playerid], -5963521);
	PlayerTextDrawSetShadow(playerid, CharTextdraw2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw2[playerid], 0);
	PlayerTextDrawFont(playerid, CharTextdraw2[playerid], 4);

	CharTextdraw3[playerid] = CreatePlayerTextDraw(playerid, 264.759979, 181.688964, "Players Skin");
	PlayerTextDrawLetterSize(playerid, CharTextdraw3[playerid], 0.449999, 1.600000);
	PlayerTextDrawTextSize(playerid, CharTextdraw3[playerid], -85.839935, 106.275558);
	PlayerTextDrawAlignment(playerid, CharTextdraw3[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw3[playerid], -1);
	PlayerTextDrawUseBox(playerid, CharTextdraw3[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharTextdraw3[playerid], 0);
	PlayerTextDrawSetShadow(playerid, CharTextdraw3[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw3[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw3[playerid], 0);
	PlayerTextDrawFont(playerid, CharTextdraw3[playerid], 5);
	PlayerTextDrawSetProportional(playerid, CharTextdraw3[playerid], 1);
	PlayerTextDrawSetPreviewModel(playerid, CharTextdraw3[playerid], 221);
	PlayerTextDrawSetPreviewRot(playerid, CharTextdraw3[playerid], 0.000000, 0.000000, 0.000000, 1.000000);


	CharTextdraw4[playerid] = CreatePlayerTextDraw(playerid, 243.800201, 189.802474, "~y~Level:~w~ Loading...~n~~y~Account:~w~ Loading...~n~~y~Created:~w~ Loading...~n~~y~Last Login:~w~ Loading...");
	PlayerTextDrawLetterSize(playerid, CharTextdraw4[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw4[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw4[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharTextdraw4[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw4[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw4[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw4[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharTextdraw4[playerid], 1);
/*
	CharTextdraw5[playerid] = CreatePlayerTextDraw(playerid, 307.199981, 264.320037, "Delete");
	PlayerTextDrawLetterSize(playerid, CharTextdraw5[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw5[playerid], -5963521);
	PlayerTextDrawSetShadow(playerid, CharTextdraw5[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw5[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw5[playerid], true);

	CharTextdraw6[playerid] = CreatePlayerTextDraw(playerid, 379.000122, 264.324584, "Spawn");
	PlayerTextDrawLetterSize(playerid, CharTextdraw6[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw6[playerid], -5963521);
//	PlayerTextDrawUseBox(playerid, CharTextdraw6[playerid], true);
//	PlayerTextDrawBoxColor(playerid, CharTextdraw6[playerid], 0);
	PlayerTextDrawSetShadow(playerid, CharTextdraw6[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw6[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw6[playerid], true);
*/
/*	CharTextdraw7[playerid] = CreatePlayerTextDraw(playerid, 246.000015, 263.822174, "Back");
	PlayerTextDrawLetterSize(playerid, CharTextdraw7[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw7[playerid], -5963521);
	PlayerTextDrawSetShadow(playerid, CharTextdraw7[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw7[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawSetProportional(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw7[playerid], true);*/
/*
	CharTextdraw6[playerid] = CreatePlayerTextDraw(playerid, 379.000122, 264.324584, "Spawn");
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw6[playerid], 255);
	PlayerTextDrawFont(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawLetterSize(playerid, CharTextdraw6[playerid], 0.309998, 1.000000);
	PlayerTextDrawColor(playerid, CharTextdraw6[playerid], -1);
	PlayerTextDrawSetOutline(playerid, CharTextdraw6[playerid], 0);
	PlayerTextDrawSetProportional(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawSetShadow(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawUseBox(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawBoxColor(playerid, CharTextdraw6[playerid], -222);
	PlayerTextDrawTextSize(playerid, CharTextdraw6[playerid], 375.000000, 27.000000);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw6[playerid], 1);
	*/

	CharTextdraw5[playerid] = CreatePlayerTextDraw(playerid, 246.000015, 263.822174, "Back");
	PlayerTextDrawLetterSize(playerid, CharTextdraw5[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw5[playerid], -1);
	PlayerTextDrawUseBox(playerid, CharTextdraw5[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharTextdraw5[playerid], 0);
	PlayerTextDrawSetShadow(playerid, CharTextdraw5[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw5[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw5[playerid], 2);
	PlayerTextDrawSetProportional(playerid, CharTextdraw5[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw5[playerid], true);

	CharTextdraw6[playerid] = CreatePlayerTextDraw(playerid, 307.199981, 264.320037, "Delete");
	PlayerTextDrawLetterSize(playerid, CharTextdraw6[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw6[playerid], -1);
	PlayerTextDrawUseBox(playerid, CharTextdraw6[playerid], true);
	PlayerTextDrawBoxColor(playerid, CharTextdraw6[playerid], 0);
	PlayerTextDrawSetShadow(playerid, CharTextdraw6[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw6[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw6[playerid], 2);
	PlayerTextDrawSetProportional(playerid, CharTextdraw6[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw6[playerid], true);

	CharTextdraw7[playerid] = CreatePlayerTextDraw(playerid, 379.000122, 264.324584, "Spawn");
	PlayerTextDrawLetterSize(playerid, CharTextdraw7[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawColor(playerid, CharTextdraw7[playerid], -1);
	PlayerTextDrawSetShadow(playerid, CharTextdraw7[playerid], 0);
	PlayerTextDrawSetOutline(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, CharTextdraw7[playerid], 51);
	PlayerTextDrawFont(playerid, CharTextdraw7[playerid], 2);
	PlayerTextDrawSetProportional(playerid, CharTextdraw7[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, CharTextdraw7[playerid], true);




	if(IsPlayerNPC(playerid)) return 1;
    ResetBackPackVariables(playerid);
	g_arrQueryHandle{playerid} = random(256);

	ToggedAlerts[playerid] = false;

	PBInfo[playerid][Cash] = 0;
	PBInfo[playerid][Materials] = 0;
	PBInfo[playerid][Food] = 0;
	PBInfo[playerid][Food2] = 0;
	PBInfo[playerid][Type] = BACKPACK_TYPE_SMALL;

	// Login screen
 	TextDrawShowForPlayer(playerid, blackbar1);
 	TextDrawShowForPlayer(playerid, blackbar2);

	//unique rl system
	TextDrawShowForPlayer(playerid, loginbox1);
	TextDrawShowForPlayer(playerid, loginbox2);
	TextDrawShowForPlayer(playerid, loginbox3);
	TextDrawShowForPlayer(playerid, loginbox4);
	TextDrawShowForPlayer(playerid, loginbox5);
	TextDrawShowForPlayer(playerid, loginbox6);
	TextDrawShowForPlayer(playerid, loginbox7);
    TextDrawShowForPlayer(playerid, rlheading);
    TextDrawShowForPlayer(playerid, tdregister);
    TextDrawShowForPlayer(playerid, tdlogin);

	TotalConnect++;
	if(Iter_Count(Player) > MaxPlayersConnected) {
		MaxPlayersConnected = Iter_Count(Player);
		getdate(MPYear,MPMonth,MPDay);
	}

	SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
	SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
	SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

	SetPVarInt(playerid, "IsInArena", -1);
	SetPVarInt(playerid, "ArenaNumber", -1);
	SetPVarInt(playerid, "ArenaEnterPass", -1);
	SetPVarInt(playerid, "ArenaEnterTeam", -1);
	SetPVarInt(playerid, "EditingTurfs", -1);
	SetPVarInt(playerid, "EditingTurfsStage", -1);
	SetPVarInt(playerid, "EditingHillStage", -1);
	SetPVarInt(playerid, "EditingFamC", -1);
	SetPVarInt(playerid, "editingfamhq", INVALID_FAMILY_ID);
	SetPVarInt(playerid, "UsingSurfAttachedObject", -1);
	SetPVarInt(playerid, "UsingBriefAttachedObject", -1);
	SetPVarInt(playerid, "AOSlotPaintballFlag", -1);
	SetPVarInt(playerid, "MovingStretcher", -1);
	SetPVarInt(playerid, "DraggingPlayer", INVALID_PLAYER_ID);
	SetPVarInt(playerid, "ttSeller", INVALID_PLAYER_ID);
	SetPVarInt(playerid, "ttBuyer", INVALID_PLAYER_ID);
	SetPVarInt(playerid, "ttCost", 0);
	SetPVarInt(playerid, "buyingVoucher", INVALID_PLAYER_ID);
	SetPVarInt(playerid, "sellerVoucher", INVALID_PLAYER_ID);
	SetPVarInt(playerid, "buyerVoucher", INVALID_PLAYER_ID);
	DeletePVar(playerid, "BeingDragged");
	DeletePVar(playerid, "PlayerCuffed");
	DeletePVar(playerid, "RPPlayerCuffed");
	DeletePVar(playerid, "MASK_ID");
	DeletePVar(playerid, "MASK_USED");
	DeletePVar(playerid, "COMMUNITY_ADVISOR_REQUEST");

	HackingMods[playerid] = 0;
	pSpeed[playerid] = 0.0;

	MaskUsage[playerid] = 0;
	VIPGun[playerid][0] = 0;
	VIPGun[playerid][1] = 0;
	//SetTimerEx("HackingTimer", 1000, 0, "i", playerid);

	for(new i = 0; i < 3; i++) {
		StopaniFloats[playerid][i] = 0;
	}

	for(new i = 0; i < 3; i++) {
        ConfigEventCPs[playerid][i] = 0;
    }
    ConfigEventCPId[playerid] = 0;
    RCPIdCurrent[playerid] = 0;

	for(new i = 0; i < 6; i++) {
	    EventFloats[playerid][i] = 0.0;
	}
	EventLastInt[playerid] = 0; EventLastVW[playerid] = 0;

	for(new i = 0; i < 6; i++) {
		HHcheckFloats[playerid][i] = 0;
	}

	for(new i = 0; i < MAX_PLAYERVEHICLES; ++i) {
		PlayerVehicleInfo[playerid][i][pvModelId] = 0;
		PlayerVehicleInfo[playerid][i][pvId] = INVALID_PLAYER_VEHICLE_ID;
		PlayerVehicleInfo[playerid][i][pvSpawned] = 0;
		PlayerVehicleInfo[playerid][i][pvSlotId] = 0;
	}

	for(new t; t < MAX_TURFS; t++) {
		turfStatus[playerid][t] = -1;
	}
	turfStatusActive[playerid] = 0;
	turfLastZone[playerid] = -1;

	for(new i = 0; i < MAX_PLAYERTOYS; i++) {
		PlayerToyInfo[playerid][i][ptID] = -1;
		PlayerToyInfo[playerid][i][ptModelID] = 0;
		PlayerToyInfo[playerid][i][ptBone] = 0;
		PlayerToyInfo[playerid][i][ptSpecial] = 0;
	}

	for(new i = 0; i < 11; i++) {
		PlayerHoldingObject[playerid][i] = 0;
	}

	for(new i = 0; i < 5; i++) {
		LottoNumbers[playerid][i] = 0;
	}

	for(new i = 0; i < MAX_BUSINESSSALES; i++) {
        Selected[playerid][i] = 0;
	}
	for(new x=0; x < mS_SELECTION_ITEMS; x++) {
        gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
	}

	gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gCancelButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;

    format(changingPassword[playerid], 1, "");
    SpoofKill[playerid] = 0;
	KillTime[playerid] = 0;
	gItemAt[playerid] = 0;
	TruckUsed[playerid] = INVALID_VEHICLE_ID;
	pDrunkLevelLast[playerid] = 0;
    pFPS[playerid] = 0;
	BackupClearTimer[playerid] = 0;
	Backup[playerid] = 0;
    CarRadars[playerid] = 0;
    CurrentArmor[playerid] = 0.0;
	PlayerInfo[playerid][pReg] = 0;
	HHcheckVW[playerid] = 0;
	HHcheckInt[playerid] = 0;
	OrderAssignedTo[playerid] = INVALID_PLAYER_ID;
	TruckUsed[playerid] = INVALID_VEHICLE_ID;
	HouseOffer[playerid] = INVALID_PLAYER_ID;
	House[playerid] = 0;
	HousePrice[playerid] = 0;
	playerTabbed[playerid] = 0;
	playerAFK[playerid] = 0;
	gBug{playerid} = 1;
	TazerTimeout[playerid] = 0;
	gRadio{playerid} = 1;
	playerLastTyped[playerid] = 0;
	AmmoHackCheck[playerid][0] = 0;
	AmmoHackCheck[playerid][1] = 0;
	AmmoHackCheck[playerid][2] = 0;
	AmmoShotCheck[playerid][0] = 0;
	AmmoShotCheck[playerid][1] = 0;
	PrevAmmoSpam[playerid] = 0;
	Delete3DTextLabel(aDutytext[playerid]);
    aDuty[playerid] = 0;
    Delete3DTextLabel(fRepfamtext[playerid]);
    fRepfam[playerid] = 0;
	pTazer{playerid} = 0;
	pTazerReplace{playerid} = 0;
	pTazerReplaceAmmo{playerid} = 0;
	//PauseAmmoCheck{playerid} = 0;
	pCurrentWeapon{playerid} = 0;
	MedicAccepted[playerid] = INVALID_PLAYER_ID;
	DefendOffer[playerid] = INVALID_PLAYER_ID;
	AppealOffer[playerid] = INVALID_PLAYER_ID;
	AppealOfferAccepted[playerid] = 0;
	PlayerInfo[playerid][pWantedLevel] = 0;
	DefendPrice[playerid] = 0;
	Spectating[playerid] = 0;
	Atmfails[playerid] = 0;
	GettingSpectated[playerid] = INVALID_PLAYER_ID;
	PlayerInfo[playerid][pPhonePrivacy] = 0;
	NewbieTimer[playerid] = 0;
	PlayerInfo[playerid][pDMVCar] = -1;
	PlayerInfo[playerid][pDMVWarnings] = 0;
	ATMHackTimer[playerid] = 0;
	StoreTimer[playerid] = 0;
	HlKickTimer[playerid] = 0;
	HelperTimer[playerid] = 0;
	VehicleOffer[playerid] = INVALID_PLAYER_ID;
	VehiclePrice[playerid] = 0;
	VehicleId[playerid] = -1;
	NOPTrigger[playerid] = 0;
	JustReported[playerid] = -1;
	UsedCrack[playerid] = 0;
	UsedMeth[playerid] = 0;
	UsedWeed[playerid] = 0;
	SexOffer[playerid] = INVALID_PLAYER_ID;
	DrinkOffer[playerid] =  INVALID_PLAYER_ID;
	PotOffer[playerid] = INVALID_PLAYER_ID;
	PotStorageID[playerid] = -1;
	CrackOffer[playerid] = INVALID_PLAYER_ID;
	CrackStorageID[playerid] = -1;
	GunOffer[playerid] = INVALID_PLAYER_ID;
	GunStorageID[playerid] = -1;
	CraftOffer[playerid] = INVALID_PLAYER_ID;
	RepairOffer[playerid] = INVALID_PLAYER_ID;
	GuardOffer[playerid] = INVALID_PLAYER_ID;
	LiveOffer[playerid] = INVALID_PLAYER_ID;
	RefillOffer[playerid] = INVALID_PLAYER_ID;
	MatsOffer[playerid] = INVALID_PLAYER_ID;
	MatsStorageID[playerid] = -1;
	MatsPrice[playerid] = 0;
	MatsAmount[playerid] = 0;
	BoxOffer[playerid] = INVALID_PLAYER_ID;
	MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
	ProposeOffer[playerid] = INVALID_PLAYER_ID;
	DivorceOffer[playerid] = INVALID_PLAYER_ID;
	HidePM[playerid] = 0;
	PhoneOnline[playerid] = 0;
	unbanip[playerid][0] = 0;
    advisorchat[playerid] = 1;
	ChosenSkin[playerid]=0;
	SelectFChar[playerid]=0;
	MatsHolding[playerid]=0;
	MatDeliver[playerid]=0;
	MatDeliver2[playerid]=0;
	szAdvert[playerid][0] = 0;
	AdvertType[playerid] = 0;
	SelectFCharPlace[playerid]=0;
	GettingJob[playerid]=0;
	GettingJob2[playerid]=0;
	GettingJob3[playerid]=0;
	GettingJob4[playerid]=0;
	GuardOffer[playerid]= INVALID_PLAYER_ID;
	GuardPrice[playerid]=0;
	ApprovedLawyer[playerid]=0;
	CallLawyer[playerid]=0;
	WantLawyer[playerid]=0;
	CurrentMoney[playerid]=0;
	UsedFind[playerid]=0;
	CP[playerid]=0;
	Condom[playerid]=0;
	SexOffer[playerid]= INVALID_PLAYER_ID;
	SexPrice[playerid]=0;
	PlayerInfo[playerid][pAdmin]=0;
	RepairOffer[playerid]= INVALID_PLAYER_ID;
	RepairPrice[playerid]=0;
	RepairCar[playerid]=0;
	TalkingLive[playerid]=INVALID_PLAYER_ID;
	LiveOffer[playerid]= INVALID_PLAYER_ID;
	RefillOffer[playerid]= INVALID_PLAYER_ID;
	RefillPrice[playerid]=0;
	InsidePlane[playerid]=INVALID_VEHICLE_ID;
	InsideMainMenu{playerid}=0;
	InsideTut{playerid}=0;
	PotOffer[playerid]= INVALID_PLAYER_ID;
	PotStorageID[playerid]=-1;
	CrackOffer[playerid]= INVALID_PLAYER_ID;
	CrackStorageID[playerid]=-1;
	PlayerCuffed[playerid]=0;
	PlayerCuffedTime[playerid]=0;
	PotPrice[playerid]=0;
	CrackPrice[playerid]=0;
	RegistrationStep[playerid]=0;
	PotGram[playerid]=0;
	CrackGram[playerid]=0;
	PlayerInfo[playerid][pBanned]=0;
	ConnectedToPC[playerid]=0;
	OrderReady[playerid]=0;
	GunId[playerid]=0;
	GunMats[playerid]=0;
	CraftId[playerid]=0;
	CraftMats[playerid]=0;
	HitOffer[playerid]= INVALID_PLAYER_ID;
	HitToGet[playerid]= INVALID_PLAYER_ID;
	InviteOffer[playerid]= INVALID_PLAYER_ID;
	InviteFamily[playerid]=INVALID_FAMILY_ID;
	hInviteHouse[playerid]=INVALID_HOUSE_ID;
	hInviteOffer[playerid]= INVALID_PLAYER_ID;
	hInviteOfferTo[playerid]= INVALID_PLAYER_ID;
	JailPrice[playerid]=0;
	GotHit[playerid]=0;
	GoChase[playerid]= INVALID_PLAYER_ID;
	GetChased[playerid]= INVALID_PLAYER_ID;
	CalledCops[playerid]=0;
	CopsCallTime[playerid]=0;
	BoxWaitTime[playerid]=0;
	CalledMedics[playerid]=0;
	TransportDuty[playerid]=0;
	PlayerTied[playerid]=0;
	MedicsCallTime[playerid]=0;
	BusCallTime[playerid]=0;
	TaxiCallTime[playerid]=0;
	EMSCallTime[playerid]=0;
	MedicCallTime[playerid]=0;
	MechanicCallTime[playerid]=0;
	FindTimePoints[playerid]=0;
	FindingPlayer[playerid]=-1;
	FindTime[playerid]=0;
	JobDuty[playerid]=0;
	Mobile[playerid]=INVALID_PLAYER_ID;
	Music[playerid]=0;
	BoxOffer[playerid]= INVALID_PLAYER_ID;
	PlayerBoxing[playerid]=0;
	Spectate[playerid]= INVALID_PLAYER_ID;
	PlayerDrunk[playerid]=0;
	PlayerDrunkTime[playerid]=0;
	format(PlayerInfo[playerid][pPrisonReason],128,"None");
	FishCount[playerid]=0;
	HelpingNewbie[playerid]= INVALID_PLAYER_ID;
	turfWarsRadar[playerid]=0;
	courtjail[playerid]=0;
	gLastCar[playerid]=0;
	FirstSpawn[playerid]=0;
	JetPack[playerid]=0;
	PlayerInfo[playerid][pKills]=0;
	PlayerInfo[playerid][pPaintTeam]=0;
	TextSpamTimes[playerid] = 0;
	TextSpamUnmute[playerid] = 0;
 	CommandSpamTimes[playerid] = 0;
	CommandSpamUnmute[playerid] = 0;
	gOoc[playerid] = 0;
	arr_Towing[playerid] = INVALID_VEHICLE_ID;
	gNews[playerid] = 0;
	gNewbie[playerid] = 1;
	gHelp[playerid] = 1;
	gFam[playerid] = 0;
	gPlayerLogged{playerid} = 0;
	gPlayerLogTries[playerid] = 0;
	IsSpawned[playerid] = 0;
	SpawnKick[playerid] = 0;
	PlayerStoned[playerid] = 0;
	PlayerInfo[playerid][pPot] = 0;
	StartTime[playerid] = 0;
	TicketOffer[playerid] = INVALID_PLAYER_ID;
	TicketMoney[playerid] = 0;
	PlayerInfo[playerid][pVehicleKeysFrom] = INVALID_PLAYER_ID;
	ActiveChatbox[playerid] = 1;
	TutStep[playerid] = 0;
	PlayerInfo[playerid][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
	TaxiAccepted[playerid] = INVALID_PLAYER_ID;
	EMSAccepted[playerid] = INVALID_PLAYER_ID;
	BusAccepted[playerid] = INVALID_PLAYER_ID;
	PlayerInfo[playerid][pCrack] = 0;
	PlayerInfo[playerid][pMeth] = 0;
	HireCar[playerid] = 299;
	TransportValue[playerid] = 0;
	TransportMoney[playerid] = 0;
	TransportTime[playerid] = 0;
	TransportCost[playerid] = 0;
	TransportDriver[playerid] = INVALID_PLAYER_ID;
	Locator[playerid] = 0;
	ReleasingMenu[playerid] = INVALID_PLAYER_ID;
	Fishes[playerid][pLastFish] = 0;
	Fishes[playerid][pFishID] = 0;
	ProposeOffer[playerid] = INVALID_PLAYER_ID;
	MarryWitness[playerid] = INVALID_PLAYER_ID;
	MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
	MarriageCeremoney[playerid] = 0;
	ProposedTo[playerid] = INVALID_PLAYER_ID;
	GotProposedBy[playerid] = INVALID_PLAYER_ID;
	DivorceOffer[playerid] = INVALID_PLAYER_ID;
	gBike[playerid] = 0;
	gBikeRenting[playerid] = 0;
	Fixr[playerid] = 0;
	VehicleSpawned[playerid] = 0;
	ReportCount[playerid] = 0;
	ReportHourCount[playerid] = 0;
	PlayerInfo[playerid][pServiceTime] = 0;
	Homes[playerid] = 0;
	******Checkvar[playerid] = 0;
	******CheckIsDone[playerid] = 0;
	IsPlayerFrozen[playerid] = 0;
	strdel(PlayerInfo[playerid][pAutoTextReply], 0, 64);
	rBigEarT[playerid] = 0;
	aLastShot[playerid] = INVALID_PLAYER_ID;
	if(IsValidDynamic3DTextLabel(RFLTeamN3D[playerid])) {
		DestroyDynamic3DTextLabel(RFLTeamN3D[playerid]);
	}
	InsideInterior[playerid] = 0;

	// These need to be reset to prevent some bugs (DO NOT REMOVE)
	PlayerInfo[playerid][pModel] = 0;
	PlayerInfo[playerid][pLeader] = INVALID_GROUP_ID;
	PlayerInfo[playerid][pMember] = INVALID_GROUP_ID;
	PlayerInfo[playerid][pDivision] = INVALID_DIVISION;
	PlayerInfo[playerid][pFMember] = INVALID_FAMILY_ID;
	PlayerInfo[playerid][pRank] = INVALID_RANK;
	PlayerInfo[playerid][pOrder] = 0;
	PlayerInfo[playerid][pOrderConfirmed] = 0;
	PlayerInfo[playerid][pBusiness] = INVALID_BUSINESS_ID;
	acstruct[playerid][LastOnFootPosition][0] = 0.0; acstruct[playerid][LastOnFootPosition][1] = 0.0; acstruct[playerid][LastOnFootPosition][2] = 0.0;
	acstruct[playerid][checkmaptp] = 0; acstruct[playerid][maptplastclick] = 0;
	acstruct[playerid][maptp][0] = 0.0; acstruct[playerid][maptp][1] = 0.0; acstruct[playerid][maptp][2] = 0.0;
	//AmmoChecking[playerid] = false;

	for(new x = 0; x < MAX_PLAYERS; x++)
	{
	    ShotPlayer[playerid][x] = 0;
	}

	for(new v = 0; v < MAX_PLAYERVEHICLES; v++) {
		PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] = INVALID_PLAYER_ID;
	}

	for(new s = 0; s < 12; s++) {
		PlayerInfo[playerid][pAGuns][s] = 0;
		PlayerInfo[playerid][pGuns][s] = 0;
		PlayerInfo[playerid][pGunsAmmo][s] = 0;
	}

	for(new s = 0; s < 40; s++) {
		ListItemReportId[playerid][s] = -1;
	}

	for(new s = 0; s < 20; s++) {
		ListItemRCPId[playerid][s] = -1;
	}

	CancelReport[playerid] = -1;
	GiveKeysTo[playerid] = INVALID_PLAYER_ID;
	RocketExplosions[playerid] = -1;
	ClearFishes(playerid);
	ClearMarriage(playerid);

	if(!InvalidNameCheck(playerid)) {
		return 1;
	}
	CheckBanEx(playerid);

	// Main Menu Features
	InsideMainMenu{playerid} = 0;
	InsideTut{playerid} = 0;

	ShowMainMenuUvais(playerid); // - This shows a textdraw
	SetPlayerJoinCamera(playerid);
	ClearChatbox(playerid);
	SetPlayerVirtualWorld(playerid, 0);

	SetPlayerColor(playerid,TEAM_HIT_COLOR);
    SendClientMessage( playerid, COLOR_GREY, "[SERVER]: {FFFFFF}Linking your connection to the database!" );
	SendClientMessage( playerid, COLOR_MAROON, "[WARNING]: {FFFFFF}This is a medium roleplay server that means environment may purposely be harsh!" );

	SyncPlayerTime(playerid);

	RemoveBuildings(playerid);
	return 1;
}
Reply
#2

There's no dialog function being used here, are you using any filterscript?
Reply
#3

Nope. That's what i was surprised to see, no dialog function..
Reply
#4

Is there any admin include or something which you suspect might show a dialog? Anything of that sort?
I checked your code and there's no timer either which might be called to show any dialog.
I found some function in your code can you confirm if these don't call any dialog either?
Код:
	ClearFishes(playerid);
	ClearMarriage(playerid);
	ShowMainMenuUvais(playerid); // - This shows a textdraw
	SetPlayerJoinCamera(playerid);
	ClearChatbox(playerid);
        SyncPlayerTime(playerid);
	RemoveBuildings(playerid);
I know some of these are obvious that they won't consist of a dialog, but we never know.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)