SA-MP Forums Archive
random spawn - 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: random spawn (/showthread.php?tid=109655)



random spawn - PANNA - 21.11.2009

well i know how to make random teleport but how can i make random spawn, when you spawn you get on a random place?


Re: random spawn - miokie - 21.11.2009

Look at the script LVDM that comes with the scripting package it has one included.


Re: random spawn - DeathOnaStick - 21.11.2009

make under OnPlayerSpawn:

pawn Код:
new randspawm=random(5);
switch(randspawn)
{
case 0:SetPlayerPos(playerid, X1, Y1, Z1);
case 1:SetPlayerPos(playerid, X2, Y2, Z2);
case 2:SetPlayerPos(playerid, X3, Y3, Z3);
case 3:SetPlayerPos(playerid, X4, Y4, Z4);
case 4:SetPlayerPos(playerid, X5, Y5, Z5);
case 5:SetPlayerPos(playerid, X6, Y6, Z6);
case 6:SetPlayerPos(playerid, X7, Y7, Z7);
}
Cheers.