[help]with teleport - 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: [help]with teleport (
/showthread.php?tid=97065)
[help]with teleport -
krisko_g1 - 12.09.2009
Hello all you all know thath i am noob scripter but i need to make a cmd for teleporting like when player go to the icon it auto teleport him inside the interior please give me some code
Re: [help]with teleport -
Correlli - 12.09.2009
This was asked many times, search.
Re: [help]with teleport -
LuxurioN™ - 12.09.2009
Icon = Pickup?
Try:
In your script top:
In OnGameModeInit (Fs? = OnFilterScriptInit):
pawn Код:
Icon = CreatePickup(model, type, PosX, PosY, PosZ);
In OnPlayerPickUpPickup:
pawn Код:
if(pickupid == Icon)
{
GameTextForPlayer(playerid,"~g~You teleported to ...",5000,3);
SetPlayerPos(playerid,X,Y,Z);
SetPlayerInterior(playerid,InteriorID);
}