[help]with teleport
#1

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
Reply
#2

This was asked many times, search.
Reply
#3

Icon = Pickup?

Try:

In your script top:
pawn Код:
new Icon;
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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)