Info Icon - How to make? // Map Markers - How to remove?
#1

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

For the first question, you need to use a pickup, see HERE.

For the second, you need to use DisableInteriorEnterExits, found HERE.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)