Change Position By Timer for all - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Change Position By Timer for all (
/showthread.php?tid=166560)
Change Position By Timer for all -
Kitten - 09.08.2010
Solved
Re: Change Position By Timer for all -
[HUN]Jaki - 09.08.2010
If you want to teleport all the players, you should use a loop, like for.
pawn Код:
for (new i=0;i<MAX_PLAYERS; i++){
SetPlayerPos(i, XYZ);
}
Re: Change Position By Timer for all -
ikey07 - 09.08.2010
Dont set pos ongamemodeinit, setplayerpos OnPlayerSpawn
also you should use more adnaced system, like
new Float:MapsSpawn[YourMapCount][4] = {
{x,y,z,HeadRot},
{x,y,z,HeadRot},
{x,y,z,HeadRot}
};
OnPlayerSpawn
SetPlayerPos(playerid,MapSpawns[CurrentMap][0],MapSpawns[CurrentMap][1],MapSpawns[CurrentMap][2]):
SetPlayerFactingAngle(playerid,MapSpawns[CurrentMap][3]);
But always remeber after gmaemodeinit you must spawn player before set anything
Re: Change Position By Timer for all -
Kar - 09.08.2010
nope he wants every n/a seconds to respawn everyone to a new place hense
Re: Change Position By Timer for all -
ikey07 - 09.08.2010
Oh, now I got it, than just go ahead to set pos