Randomish Teleport?
#2

pawn Код:
new Float:gRandomSpawns [MAX_SPAWNS] [4] = {
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
....
{x,y,z},
{x,y,z}
};

for(new i;i<MAX_PLAYERS;i++)

SetPlayerPos(playerid,gRandomSpawns [i] [1],gRandomSpawns [i] [2],gRandomSpawns [i] [3]}
Should work. I haven't scripted something with Random spawns for long time so this was something I have remembered.
Reply


Messages In This Thread
Randomish Teleport? - by HayZatic - 05.07.2011, 18:42
Re: Randomish Teleport? - by [MG]Dimi - 05.07.2011, 19:07
Re: Randomish Teleport? - by HayZatic - 05.07.2011, 19:11
Re: Randomish Teleport? - by TheGarfield - 05.07.2011, 19:18
Re: Randomish Teleport? - by HayZatic - 05.07.2011, 20:04
Re: Randomish Teleport? - by [MG]Dimi - 05.07.2011, 20:19

Forum Jump:


Users browsing this thread: 3 Guest(s)