How to Disable player marker on map when pickup ?
#1

Hello there,
Just want to ask..


Well..Im using Pickups to Enter/Exit stores on my server but when player enter any stores they teleport to a interior as usual but its kidda look like teleport (due to player marker)

So..Can anyone tell me how to...

Disable Player Marker on pickup. (Keeping the Previous Marker Colour)
&
Enable Player Marker on Pickup. (Restoring the Marker Colour)

for Enter & Exit

Thanks in Advance.
Reply
#2

If I understood you,you need this under @OnGameModeInIt:

PHP код:
DisableInteriorEnterExits(); 
Reply
#3

No Buddy..

I want this kind of stuff - https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer

But visible for all players..

like

When i Pickup a Pickup...I ll be Invisible on Map (Player Marker)
and When i again Pickup another Pickup I ll be back on Map.
Reply
#4

On player Pickup Pickup...
-Loop
- SetPlayerMarkerForPlayer - disable it..

you're done sec let me look into code I will make one for u
Reply
#5

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    // pickup id here
    for (new i = 0; i != MAX_PLAYERS; ++i)
    {
        if (IsPlayerConnected(i))
        {
            SetPlayerMarkerForPlayer(playerid, i, 00 ); // if not 00 try 0xFF0000FF
        }
    }
    //another pickup
    for (new i = 0; i != MAX_PLAYERS; ++i)
    {
        if (IsPlayerConnected(i))
        {
            SetPlayerMarkerForPlayer(playerid, i, color you wish );
        }
    }
    return 1;
}
Reply
#6

My Question is Changed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)