Choosing spawn - 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: Choosing spawn (
/showthread.php?tid=602305)
Choosing spawn -
ZmaXy - 05.03.2016
I make choosing spawn like this:
PHP код:
if(playertextid == ChoosingSpawnTD[playerid][2])
{
if(SpawnOne[playerid] == 1)
{
SpawnOne[playerid] = 0;
InterpolateCameraPos(playerid, 1335.449340, -1057.291870, 3361.420166, 1316.620605, -1050.179931, 3361.081054, 6000);
InterpolateCameraLookAt(playerid, 1330.957153, -1055.331298, 3360.431884, 1319.766113, -1053.892944, 3359.932373, 5000);
SpawnTwo[playerid] = 1;
}
if(SpawnTwo[playerid] == 1)
{
SpawnTwo[playerid] = 0;
InterpolateCameraPos(playerid, 241.499862, -2188.880371, 14.440292, 199.243118, -2194.479492, 13.973038, 5000);
InterpolateCameraLookAt(playerid, 236.620269, -2189.223144, 13.404871, 200.090469, -2189.977539, 11.969642, 4000);
SpawnThree[playerid] = 1;
}
if(SpawnThree[playerid] == 1)
{
SpawnThree[playerid] = 0;
InterpolateCameraPos(playerid, 1710.884277, -1954.724731, 26.202005, 1713.921020, -1912.464233, 15.658226, 5000);
InterpolateCameraLookAt(playerid, 1713.109130, -1950.521484, 24.658533, 1709.125610, -1911.636596, 14.509630, 4000);
SpawnOne[playerid] = 1;
}
}
But on this way doesn't work. In what way can this be done? You see what it is..
Re: Choosing spawn -
MicroKyrr - 05.03.2016
Don't get it.I'm sorry but can u explain more?
Re: Choosing spawn -
ZmaXy - 05.03.2016
My English is bad, but I try to explain
I use one TextDraw (gumb) to choose a one of three spawn positions on registration.
Should start from SpawnOne to SpawnThree, but when I first time click on TD, only switch the camera on SpawnThree. But should start SpawnOne, SpawnTwo, SpawnThree, in row...
sorry for my stupid English xD
Re: Choosing spawn -
xEF - 05.03.2016
On your functions you only set the camera position, not the player position, as i understood you want a player spawn, called by the textdraw.
Regards.