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



Question - vlastikczech - 24.05.2009

How do I make it if someone is on the pickup for an PlayerToPoint they teleport automatically without typing /enter or /exit to get out?


Re: Question - Weirdosport - 24.05.2009

Something like this, bear in mind you'll need to set the pickup position and teleport co-ordinates yourself (and the model):

pawn Код:
//top of script
new exitpickup;

//on Gamemode/Filterscript Init
exitpickup = CreatePickup(Model,23,X,Y,Z);

//OnPlayerPickupPickup
if(pickupid == exitpickup)
{
    SetPlayerPos(playerid, X, Y, Z);
}