SA-MP Forums Archive
How To Go This Int ? - 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)
+--- Thread: How To Go This Int ? (/showthread.php?tid=542015)



How To Go This Int ? - krasjahn1023 - 16.10.2014

Quote:

// Removal of hell hole (VIP Lounge)
CreateDynamicObject(5397, 1782.96, -1563.40, 20.57, 0.00, 0.00, -4.00);
CreateDynamicObject(3623, 1756.68, -1578.90, 16.63, 0.00, 0.00, 171.00);
CreateDynamicObject(9946, 1777.26, -1581.90, 12.23, 0.00, 0.00, 0.00);
CreateDynamicObject(9946, 1787.87, -1555.69, 12.23, 0.00, 0.00, 0.00);
CreateDynamicObject(1557, 1781.43, -1564.99, 12.29, 0.00, 0.00, -4.00);
CreateDynamicObject(1557, 1784.42, -1565.20, 12.29, 0.00, 0.00, 176.00);
CreateDynamicObject(6057, 1766.17, -1540.20, 13.28, 0.00, 0.00, 180.00);
CreateDynamicObject(6057, 1798.54, -1541.37, 13.24, 0.00, 0.00, 178.00);
CreateDynamicObject(9339, 1765.43, -1593.55, 12.08, 0.00, 0.00, 84.00);
CreateDynamicObject(3660, 1773.95, -1593.39, 14.19, 0.00, 0.00, -4.00);
CreateDynamicObject(18766, 1821.13, -1537.24, 17.44, 90.00, 0.00, 73.00);
CreateDynamicObject(18766, 1819.97, -1540.89, 17.44, 90.00, 0.00, 73.00);
CreateDynamicObject(3623, 1761.02, -1551.50, 16.63, 0.00, 0.00, 171.00);




Respuesta: How To Go This Int ? - ghost556 - 16.10.2014

If you mean an enter command use these
Or else give me more information on what you need help with.

Use an editor to get to the location then test it and use the save command ((/save)) then open the savedpositions and get the coords, use that and put it into the command.

Код:
IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z);
This code will be making sure the player is at the entrance/exit
Код:
SetPlayerPos(playerid, X, Y, Z);
And this code will set the player to the new coords
Код:
SetPlayerInterior(playerid, interiorid);
This will set the players to a certain interiorid, make sure to use this function for default interiors or you will fall through the interior.