SA-MP Forums Archive
How you set dis up. - 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)
+--- Thread: How you set dis up. (/showthread.php?tid=409771)



How you set dis up. - DerickClark - 22.01.2013

i don't get it i trying to make a spawn.
Код:
607.5733,1677.1188,6.9922,127.1774,0,0,0,0,0,0); // 
639.1341,1683.4169,7.1875,47.4448,0,0,0,0,0,0); //
one like dis
Код:
{-525.0, -502.0, 26.0, 0.0},



AW: How you set dis up. - Nobody3d - 22.01.2013

If you'd be just a liiittle bit more specific, on what your problem is.
Maybe this is what you wanted :
- https://sampwiki.blast.hk/wiki/AddPlayerClass
- https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: AW: How you set dis up. - SilverKiller - 22.01.2013

Quote:
Originally Posted by Nobody3d
Посмотреть сообщение
If you'd be just a liiittle bit more specific, on what your problem is.
Maybe this is what you wanted :
- https://sampwiki.blast.hk/wiki/AddPlayerClass
- https://sampwiki.blast.hk/wiki/SetSpawnInfo
He means making a Random Spawn:

Look try this

pawn Код:
{607.5733,1677.1188,6.9922,127.1774},
    {639.1341,1683.4169,7.1875,47.4448}



Re: How you set dis up. - DerickClark - 22.01.2013

i'm trying to set the Spawn for Trucker

Код:
// Setup spawnlocations for each class (when selecting "Spawn" at class-selection, a random spawnlocation is selected)
new ASpawnLocationsTrucker[][TSpawnLocation] =
{
	{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
	{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
	{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
	{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
	{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
	{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
	{332.0, 900.0, 25.0, 205.0}, // Quarry Top
	{-1575.0, -2724.0, 49.0, 146.0} // Shady Creek Depot
};



Re: How you set dis up. - SilverKiller - 22.01.2013

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
i'm trying to set the Spawn for Trucker

Код:
// Setup spawnlocations for each class (when selecting "Spawn" at class-selection, a random spawnlocation is selected)
new ASpawnLocationsTrucker[][TSpawnLocation] =
{
	{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
	{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
	{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
	{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
	{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
	{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
	{332.0, 900.0, 25.0, 205.0}, // Quarry Top
	{-1575.0, -2724.0, 49.0, 146.0} // Shady Creek Depot
};
Just give the full coordinates for your teleports. and i will make it


AW: How you set dis up. - Kwashiorkor - 22.01.2013

Quote:

607.5733,1677.1188,6.9922,127.1774,0,0,0,0,0,0); //

607.5733 - X coordinate
1677.1188 - Y coordinate
6.9922 - Z coordinate
127.1774 - facing angle
0,0 - first weapon (id,ammo)
0,0 - second weapon (id,ammo)
0,0 -third weapon (id,ammo)
you could use this information for https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: How you set dis up. - DerickClark - 22.01.2013

Код:
AddPlayerClass(32,607.5733,1677.1188,6.9922,127.1774,0,0,0,0,0,0); // 
AddPlayerClass(32,639.1341,1683.4169,7.1875,47.4448,0,0,0,0,0,0); //



Re: How you set dis up. - FUNExtreme - 22.01.2013

Check out my random spawn tutorial

https://sampforum.blast.hk/showthread.php?tid=162488


Re: AW: How you set dis up. - SilverKiller - 22.01.2013

Try this

pawn Код:
{607.5733,1677.1188,6.9922,127.1774},
    {639.1341,1683.4169,7.1875,47.4448}