How to Disable player marker on map when pickup ? - 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)
+--- Thread: How to Disable player marker on map when pickup ? (
/showthread.php?tid=577663)
How to Disable player marker on map when pickup ? -
Adarsh007 - 13.06.2015
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.
Re: How to Disable player marker on map when pickup ? -
NoDi522 - 13.06.2015
If I understood you,you need this under @OnGameModeInIt:
PHP код:
DisableInteriorEnterExits();
Re: How to Disable player marker on map when pickup ? -
Adarsh007 - 13.06.2015
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.
Re: How to Disable player marker on map when pickup ? -
Lajko1 - 13.06.2015
On player Pickup Pickup...
-Loop
- SetPlayerMarkerForPlayer - disable it..
you're done
sec let me look into code I will make one for u
Re: How to Disable player marker on map when pickup ? -
Lajko1 - 13.06.2015
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;
}
Re: How to Disable player marker on map when pickup ? -
Adarsh007 - 13.06.2015
My Question is Changed.