Info Icon - How to make? // Map Markers - How to remove? - 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: Info Icon - How to make? // Map Markers - How to remove? (
/showthread.php?tid=73353)
Info Icon - How to make? // Map Markers - How to remove? -
nickbugun - 14.04.2009
2 Questions:
--
How can I make a Info icon that when you go into, you get teleported into a room?
--
How can I remove a yellow marker that is near a door?
Thanks.
Re: Info Icon - How to make? // Map Markers - How to remove? -
Weirdosport - 14.04.2009
For the first question, you need to use a pickup, see
HERE.
For the second, you need to use DisableInteriorEnterExits, found
HERE.
Re: Info Icon - How to make? // Map Markers - How to remove? -
Taz86 - 14.04.2009
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