SA-MP Forums Archive
Spawning help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawning help (/showthread.php?tid=97085)



Spawning help - dayav07 - 12.09.2009

Код:
Код:
I originally had a spawn point at 4dragons... then i deleted and put a spawn point in FC like this
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Fort Carson DM");
	AddPlayerClass(0,172.2445,1220.8604,19.5938,181.1826,0,0,0,0,0,0); // cafe
	AddStaticVehicleEx(419,-177.1931,1225.3440,19.5396,269.8269,47,76,5); // esperanto
	AddStaticVehicleEx(421,-177.3980,1213.8656,19.6229,271.0451,13,1,5); // washington
	AddStaticVehicleEx(421,-150.3455,1177.4398,19.6285,179.8990,13,1,5); // washington2
	AddStaticVehicleEx(426,-141.5858,1177.1309,19.4891,180.8839,42,42,5); // premier
	AddStaticVehicleEx(426,-194.5683,1223.2703,19.4853,358.5677,42,42,5); // premier2
	AddStaticVehicleEx(434,-199.4140,1223.0217,19.7088,359.4897,12,12,5); // hotknife

	return 1;
}
It kept spawning me in the original place in 4drags
so i added this:

Код:
public OnPlayerSpawn(playerid)
{
 	SetPlayerPos(playerid, -177.79, 1205.00, 19.74); //moving from the previous 4drag spawn to the cafe in FC
	return 1;
}
can sum1 please help me out with spawning :)

thanx



Re: Spawning help - Calgon - 12.09.2009

Edit the position in SetSpawnInfo().