SA-MP Forums Archive
Random Position Then Link To Interior - 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 Position Then Link To Interior (/showthread.php?tid=70788)



Random Position Then Link To Interior - Alec24 - 27.03.2009

I have 4 sets of co-ordinates but as they are interiors i need to link the player to the correct interior:

pawn Code:
new Float: Maps[][3] =
{
    {2567.52,-1294.59,1063.25},//Smokes crk palace - 2
    {2220.26,-1148.01,1025.80},//Jefferson hotel - 15
    {1299.14,-794.77,1084.00},//MD mansion - 5
    {2233.8032,1712.2303,1011.7632}//Calig casino - 1
};
pawn Code:
new RoundMap = random(sizeof(Maps));
How do i link the player to interior of the specified co-ords?