Yellow Marker how to add
#1

Hello

Im are tired to type ./enter and ./exit when enter or exit a building are there a script that add yellow markers.

Answer plz!
Reply
#2

I don't think there is a script with yellow markers ( besides not using DisableInteriorEnterExits(); ), however you can enter a building by pressing ENTER like this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_SECONDARY_ATTACK)) // Enter Key
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z)) // Your icon coords
        {
            SetPlayerPos(playerid, x, y, z, a); // Your int coords
            SetPlayerInterior(playerid, id); // Your int id
            SetPlayerVirtualWorld(playerid, id); // Your VW id
        }
    }
    return 1;
}
Check this https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#3

Im not so high tech on this scripting and stuff but can you tell me were i put that code and how.
Reply
#4

If you're not so high tech then you should leave scripting or get better, you can't just come here and ask everytime you want a new implementation to your GM...

Check this post: https://sampforum.blast.hk/showthread.php?tid=92
Reply
#5

But i can a Little bit were can i put that code plz say.
Reply
#6

Just use Pickups!

pawn Код:
new Enter
pawn Код:
public OnGameModeInit ()
{
    Enter = CreatePickup(1559,1,X,Y,Z,-1);
    return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == enter) SetPlayerPos(playerid,X,Y,Z);
    return 1;
}
Reply
#7

Were can i add that code [CG Milito]

Tell me thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)