SA-MP Forums Archive
some help request - 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: some help request (/showthread.php?tid=160260)



some help request - LifeStyle - 16.07.2010

I have a server, and we spawn all at 1 point. Now i need a command that can make them move random, left right etc.
like unjam. But i don't have a clue how to. Hope somebody can help me.


Re: some help request - ikey07 - 16.07.2010

new Float:RandomSpawn[4][3] = {
{x.x,y.y,z.z}.
{x.x,y.y,z.z}.
{x.x,y.y,z.z}.
{x.x,y.y,z.z}
};

at spawn
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid,RandomSpawn[rand][0],RandomSpawn[rand][1],RandomSpawn[rand][2]);


Re: some help request - LifeStyle - 16.07.2010

haha, this is not what i meant but thnx, I need a command when i type /unstuck that players in my spot will be moved to forward,right,left,backward. So were not stuck anymore. And it should be like 1m away from me or so


Re: some help request - ikey07 - 16.07.2010

But why you want be stuck together at start?, make a random and you will not need this /unstuck


Re: some help request - LifeStyle - 16.07.2010

Because i have more spawns, and different maps and there are no restarts..