Player position
#1

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 (:
Reply
#2

Can you post some code? Preferably your spec on and off commands.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)