I thin that its ok but ask others cause im still noob on this.
Go on top do
new mytp; // change it to what you want
Go to under public OnGameModeInit()
Do like this:
AddStaticPickup(1239, 2, Cords over here); // 1239 is the "i" Icon ID, 2 Its the Type of the pickup
Than go under public OnPlayerPickUpPickup(playerid, pickupid)
Do like this:
if ( pickupid == mytp )
{
SetPlayerPos(playerid, Coords( To the place you want the TP);
GameTextForPlayer(playerid, "Test if you want here, Like Welcome to LS",5000,1);
SetPlayerInterior(playerid,0);// Cahnge the ID due to the place
SetPlayerFacingAngle(playerid, 90);
PlayerInfo[playerid][pInt] = 0;// also here
}
}
return 1;
i think what i told you to do at OnPlayerPickUpPickup(playerid, pickupid)
Worng or true, but ask others, i know its something same like this
https://sampwiki.blast.hk/wiki/Function:AddStaticPickup