Player position - 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: Player position (
/showthread.php?tid=501564)
Player position -
Ananisiki - 19.03.2014
Hi, after i created random spawns, my spectating command got a bit messed up, before the random spawn thing, if you started to spectate anyone, your position, virtual world and stuff saved, when you stoped to spectating you was back on your old place, but now if i spectate anyone and stop spectating, i get spawned at the random spawns i did, what can the problem be?
tell me what to post (:
Re: Player position -
BenTaylorUK - 19.03.2014
Can you post some code? Preferably your spec on and off commands.
Re: Player position -
azzerking - 19.03.2014
I can't see how random spawns can affect your spectating, unless you have forgot to write a if statement in OnPlayerSpawn that says something like:
pawn Код:
If(SpectateMode == 1)
{
SetPlayerPos(playerid, savedPos[0], SavedPos[1], SavedPos[2]);
SpectateMode = 0;
return 1;
}
But unless I can see your code this is all I can do to help.