Problem. - 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: Problem. (
/showthread.php?tid=309927)
Problem. -
budelis - 09.01.2012
I have problem,i don't know what happing here,i go to las venturas here:
That coordinates,no exsit in my gamemode,that's why i don't understand,why i go there? for ex: when i stop spectate,i go there,or not load stats.
Re: Problem. -
sabretur - 09.01.2012
Check your AddPlayerClass() coordinates.
Re: Problem. -
budelis - 09.01.2012
My mistake.
ok i remove that,but now i go to coord 0.0 0.0 0.0,how to make that coordinates,in what you are? when you stop spectate,you go in that coordinates,where you been,and in others things.
Re: Problem. -
Tanush123 - 09.01.2012
on top add
pawn Код:
new SpecX[MAX_PLAYERS],SpecY[MAX_PLAYERS],SpecZ[MAX_PLAYERS],Float:X,Float:Y,Float:Z
on your spectate command add
pawn Код:
GetPlayerPos(playerid,X,Y,Z);
SpecX[playerid] = X;
SpecY[playerid] = Y;
SpecZ[playerid] = Z;
and your specoff code
pawn Код:
SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);