coords
#1

Hey there well.
On my script i changed the spawn point of the new players when they just registered but it keep spawn at the same position and i tested the coords that i deleted and its the exactly the same on the spawn point but then i deleted it and made an spawn poisition but it keep spawn at the same position. And i of course compiled and restarted the server with no errors of course here is coods

Код:
public SetPlayerSpawn(playerid) // Sorensen
{
	StopPlayerSpec(playerid);
	SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], 1.0, -1, -1, -1, -1, -1, -1);
	SpawnPlayer(playerid);
	new house = PlayerInfo[playerid][pHouseKey];
	if(GetIntVar(playerid, "JustDoneRegister") == 1)
	{
		ToggleMainMenu(playerid, 0);
		ShowHudTextDraws(playerid, 1);
		StopAudioStreamForPlayer(playerid);
		StopPlayerSpec(playerid);
		SetIntVar(playerid, "gLogged", 1);
		RemoveVar(playerid, "JustDoneRegister");
		SetWorld(playerid, 0);
		ClearChatbox(playerid, 50);
		ClearChatbox(playerid, 100);
		SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1685.4147,-2333.4783,-2.6797,359.0640, -1, -1, -1, -1, -1, -1); /* spawnairport */
		ServerMSG(playerid, "It's your first time in the server use /help for the server commands.");
		ServerMSG(playerid, "You can also use /helpme to get help from our {00FF00}OnDuty{FFFFFF} helpers.");
		PlayerInfo[playerid][pRegistered] = 1;
		PlayerInfo[playerid][pLevel] = 1;
		PlayerInfo[playerid][pCellPhone] = 1;
		PlayerInfo[playerid][pNumber] = randomEx(1234567, 9999999);
		ShowHunger(playerid);
		SetFightStyle(playerid, F_GRABKICK);
		ScoreUpdate(playerid);
		SetCash(playerid, 10000);
		SetBankCash(playerid, 10000);
		SetNormalColor(playerid);
		SetInterior(playerid,0);
		SavePlayerStats(playerid);
		SetPlayerSpawn(playerid);
		return 1;
	}
	if(PlayerInfo[playerid][pJailed] == 1)
	{
		SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 2576.7861,2712.2004,22.9507, 1.0, -1, -1, -1, -1, -1, -1);
		SetPlayerPos(playerid,  2576.7861,2712.2004,22.9507);
		PlayerInfo[playerid][pDied] = 0;
		RemoveVar(playerid, "JustDied");
		SetInterior(playerid,0);
		SetWorld(playerid, 0);
		ServerMSG(playerid, "You're still admin jailed.");
	} 
	else if(PlayerInfo[playerid][pJailed] == 2)
	{
		PutPlayerInCell(playerid);
		PlayerInfo[playerid][pDied] = 0;
		RemoveVar(playerid, "JustDied");
		SetInterior(playerid, 10);
		SetWorld(playerid, 0);
		SCM(playerid, COLOR_GRAD2, "You were jailed when you logged out.");
	}
	else if(PlayerInfo[playerid][pJailed] == 3)
	{
		FreezePlayer(playerid);
		SetTimerEx("UnFreezePlayer", 3000, 0, "i", playerid);
		SetInterior(playerid, 0);
		SetWorld(playerid, 0);
		PutPlayerInPrisonCell(playerid);
		PlayerInfo[playerid][pDied] = 0;
		RemoveVar(playerid, "JustDied");
	} 
	else 
	{
		if(PlayerInfo[playerid][pDied] == 1)
		{
			PutPlayer(playerid, PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
			SetInterior(playerid, PlayerInfo[playerid][pInt]);
			SetWorld(playerid, PlayerInfo[playerid][pWorld]);
			SetIntVar(playerid, "LoggedInDead", 1);
			SetPlayerHealth(playerid, 1000.0);
			SetPlayerCameraPos(playerid,PlayerInfo[playerid][pPosX]+3,PlayerInfo[playerid][pPosY]+3,PlayerInfo[playerid][pPosZ]+3);
			SetPlayerCameraLookAt(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
			SetTimerEx("FreezePlayer", 100, 0, "i", playerid);
			SetTimerEx("DeadAnim", 1000, 0, "i", playerid);
			SCM(playerid, COLOR_YELLOW, "You are brutally wounded, you may wait for a medic or '/acceptdeath'.");
		}
		else if(PlayerInfo[playerid][pCrashed] == 1 && PlayerInfo[playerid][pFaction] == 0)
		{
			PlayerInfo[playerid][pCrashed] = 0;
			PutPlayer(playerid, PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
			SetInterior(playerid, PlayerInfo[playerid][pInt]);
			SetWorld(playerid, PlayerInfo[playerid][pWorld]);
		}
		else if(PlayerInfo[playerid][pSpawnType] == 1)
		{
			if(house == -1)
			{
				SCM(playerid, COLOR_LIGHTRED, "You don't have a house anymore so you have spawned normaly.");
				PlayerInfo[playerid][pSpawnType] = 0;
			}
			else
			{
				PutPlayer(playerid, HouseInfo[house][hExitX], HouseInfo[house][hExitY],HouseInfo[house][hExitZ]);
				SetInterior(playerid,HouseInfo[house][hInterior]);
				SetWorld(playerid,HouseInfo[house][hWorld]);
				HouseEntered[playerid] = house;
				FreezePlayer(playerid);
				SetTimerEx("UnFreezePlayer", 4000, 0, "i", playerid);
			}
		}
		else if(PlayerInfo[playerid][pSpawnType] == 2)
		{
			if(PlayerInfo[playerid][pFaction] == 0)
			{
				SCM(playerid, COLOR_LIGHTRED, "You are not in a faction anymore so you have spawned normaly.");
				PlayerInfo[playerid][pSpawnType] = 0;
			}
			else
			{
				PutPlayer(playerid,Factions[PlayerInfo[playerid][pFaction]][fX],Factions[PlayerInfo[playerid][pFaction]][fY],Factions[PlayerInfo[playerid][pFaction]][fZ]);
				SetInterior(playerid, Factions[PlayerInfo[playerid][pFaction]][fSpawnInt]);
				SetWorld(playerid,0);
				FreezePlayer(playerid);
				SetTimerEx("UnFreezePlayer", 900, 0, "i", playerid);
			}
		}
		else if(PlayerInfo[playerid][pSpawnType] == 0)
		{
			SetInterior(playerid,0);
			SetWorld(playerid, 0);
		}
	}
	return 1;
}
And this is the new coords i changed

Код:
		SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1685.4147,-2333.4783,-2.6797,359.0640, -1, -1, -1, -1, -1, -1); /* spawnairport */
and this is the old one that spawn at blueberry
Код:
		SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 321.8450,-30.1416,1.6294,179.8916, -1, -1, -1, -1, -1, -1); /* spawnblueberry */
Reply
#2

Do you have
Код:
public Login()
in your server?
Reply
#3

No but i have this one
Код:
public LoginPlayer(playerid)
{
	new rows, fields;
	cache_get_data(rows, fields);	
	if(rows)
	{
		KillTimer(LoginTimer{playerid});
		TextDrawHideForPlayer(playerid, WelcomeDraw);
		SCMEx(playerid, COLOR_WHITE, "SERVER: Logged in as: %s", GetNameEx(playerid));
		OnAccountLoad(playerid);
		ToggleMainMenu(playerid, 0);
		ShowHudTextDraws(playerid, 1);
		RemoveVar(playerid, "LogTries");
		SetIntVar(playerid, "gLogged", 1);
		ScoreUpdate(playerid);
		StopPlayerSpec(playerid);
		SetNormalColor(playerid);
		PutPlayer(playerid, PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
		SetInterior(playerid, PlayerInfo[playerid][pInt]);
		SetWorld(playerid, PlayerInfo[playerid][pWorld]);
		
		if(PlayerInfo[playerid][pAdmin] > 0)
		{
 			format(msg, sizeof(msg), "Login: Administrator %s has just logged in as level %d", GetName(playerid), PlayerInfo[playerid][pAdmin]);
			AMSG(COLOR_YELLOW, msg);

			new amotdstring[128];
			format(amotdstring, sizeof(amotdstring), "Admin News: %s", AdminMOTD);
			if(PlayerInfo[playerid][pAdmin] > 0)  SendClientMessage(playerid, COLOR_YELLOW, amotdstring);
		}
		new motdstring[128];
		format(motdstring, sizeof(motdstring), "Server News: %s", GlobalMOTD);
		SendClientMessage(playerid, COLOR_WHITE, motdstring);
							
		if(PlayerInfo[playerid][pCrashed] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pFaction] == 0)
		{
			SCM(playerid, COLOR_LIGHTBLUE, "Your previous crash has been reported.");
			format(msg, sizeof(msg), "AdmCmd: %s has just logged in after a crash.", GetName(playerid));
			AMSG(COLOR_LIGHTRED, msg);
			PlayerInfo[playerid][pCrashed] = 0;
			PutPlayer(playerid, PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
			SetInterior(playerid, PlayerInfo[playerid][pInt]);
			SetWorld(playerid, PlayerInfo[playerid][pWorld]);
		}
		else
		{
			format(msg, sizeof(msg), "~w~Welcome ~n~~y~   %s", GetName(playerid));
			GameTextForPlayer(playerid, msg, 5000, 1);
		}
		if(CountPlayerTickets(playerid) > 0)
		{
			SCMEx(playerid, COLOR_LIGHTRED, "* You have %d fine adresses towards you, /fine to check.", CountPlayerTickets(playerid));
		}
		SetPlayerSpawn(playerid);
		SetPlayerWeapons(playerid);
		SetCash(playerid, PlayerInfo[playerid][pCash]);
		ShowRadioTextDraw(playerid);
		ShowHunger(playerid);
		CheckOwnedVehicles(playerid);
	}
	else
	{
		if(GetIntVar(playerid, "LogTries") < 3)
		{
			UpdateIntVar(playerid, "LogTries", 1);
		}
		else
		{
			KickEx(playerid, "You've entered a wrong password 3 times.");
			return 1;
		}
		format(msg, sizeof(msg), ""EMBED_WHITE"Welcome to Next Life Roleplay, "EMBED_RED"%s\n"EMBED_WHITE"This user was found in our database, please enter your password below to login.\n("EMBED_RED"Wrong Password!"EMBED_CYAN" %d/3"EMBED_WHITE")\nYou have 60 seconds to login", GetName(playerid), GetIntVar(playerid, "LogTries"));
	    ShowDialog(playerid, Show:<Login>, DIALOG_STYLE_INPUT, ""EMBED_YELLOW"Next Life Roleplay Login"EMBED_WHITE"", msg, "Login", "Quit");
	}
    return 1;
}
Reply
#4

AddPlayerClass?
Reply
#5

Код:
public OnGameModeInit()
{
	AntiDeAMX();
    ConnectMySQL();
	AddLabelsFromFile();
	AddFactionDoors();
	AddDynamicGates();
	AddATMFromFile();
	AddAdminTeleports();
	AddDynamicObjects();
	AddDynamicInfos();
	AddDynamicGasStations();
	AddDynamicBanks();
	AddDynamicVehicles();
	AddDynamicHouses();
	AddDynamicBiz();
	AddDynamicStands();
	AddDynamicMeters();
	LoadApbs();
	LoadDoors();
	LoadPackages();
	AddDynamicFactions();
	AddDynamicJobs();
	AddRadios();
	AddMoveDoorsFromFile();
	AddDynamicCCTV();
	LoadDealerShips();
	TextDraws_Init();
	SetCurrentTime();
	CreateAllMenus();
	AddTolls();
	AddPlants();
	DisableInteriorEnterExits();
	ManualVehicleEngineAndLights();
	AllowInteriorWeapons(1);
	EnableStuntBonusForAll(0);
	ShowPlayerMarkers(0);
	SetNameTagDrawDistance(15.0);
	SetGameModeText(GameModeText);
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	//Loading model stuff to the skin menu
	skinlist = LoadModelSelectionMenu("skins.txt");
	vehiclelist = LoadModelSelectionMenu("vehicles.txt");
	weaponlist = LoadModelSelectionMenu("guns.txt");
	buyable = LoadModelSelectionMenu("buyable.txt");
	//Loading model stuff to the skin menu
	AddObjects();
	AddHousesInteriors();
	checkgastimer = SetTimer("CheckGas", VEHICLES_GAS_TIMER, 1);
	on‌emintimer = SetTimer("OneMinuteTimer", 60000, 1);
	globalsaving = SetTimer("GlobalSaving", 1800000, 1);
	paydaytimer = SetTimer("AddPayDayTime", 240000, 1);
	checkstatus = SetTimer("CheckStatus", 1000, 1);
	hungertimer = SetTimer("CheckHunger", 900000, 1);
	for(new c = 0; c < MAX_VEHICLES; c++)
	{
		Gas{c} = 100;
	}
	
	/* Weapon Package and Vehicles. */
	MAXCRATES = 40; // Sets Default Max Crates
	CrateLoad = CreateDynamicObject(964,968.0999800,2060.8999000,9.8000000,0.00000000,0.00000000,0.00000000, .worldid = 0, .streamdistance = 400); //object(cj_metal_crate) (1)
	CreateDynamic3DTextLabel("{FF8000}/loadforklift\nTo load the weapon package onto your forklift", COLOR_YELLOW, 968.0999800,2060.8999000,9.8000000, 20.0, _, _, 1, 0, 0, _, 20.0);
	CrateIslandVehicles[0] = AddStaticVehicleEx(530,977.0000000,2102.1999500,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[1] = AddStaticVehicleEx(530,969.2000100,2102.1999500,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[2] = AddStaticVehicleEx(530,936.9000200,2127.8999000,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[3] = AddStaticVehicleEx(530,921.2999900,2154.3000500,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[4] = AddStaticVehicleEx(530,921.2999900,2140.6999500,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[5] = AddStaticVehicleEx(530,921.7999900,2072.3000500,10.6000000,0.0000000,140,146,15); //Forklift
	CrateIslandVehicles[6] = AddStaticVehicleEx(455,950.2999900,2167.1999500,11.4000000,0.0000000,132,148,15); //Flatbed
	CrateIslandVehicles[7] = AddStaticVehicleEx(455,963.7999900,2168.6001000,11.4000000,0.0000000,132,148,15); //Flatbed
	CrateIslandVehicles[8] = AddStaticVehicleEx(455,984.0999800,2167.8999000,11.4000000,0.0000000,132,148,15); //Flatbed
	CrateIslandVehicles[9] = AddStaticVehicleEx(455,978.2999900,2167.8000500,11.4000000,0.0000000,132,148,15); //Flatbed
	CrateIslandVehicles[10] = AddStaticVehicleEx(455,942.7999900,2167.1001000,11.4000000,0.0000000,132,148,15); //Flatbed

	//Reseting player vehicle key & slot
	format(query, sizeof(query), "UPDATE `users` SET `carkey` = '0', `vehslot` = '0'");
	mysql_function_query(dbHandle, query, false, "", "");
	//Reseting player vehicle key & slot

    return 1;
}
Код:
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Reply
#6

Try to teleport on the old coords for sure if it was in blueberry because it should work if you changed only coords. Next problem could be that you are running old GM. You don't have some WorldBounds y?
Reply
#7

I am 100 percent sure thats in blueberry
Reply
#8

Anyone?
Reply
#9

Anyone please?
Reply
#10

Try to copy the old coords, CTRL + F, paste it, and check if the coords are somewhere hidden in your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)