How to Disable "Player Marker" in Every Interior ? -
Adarsh007 - 13.06.2015
Hello there,
I want to ask how can i Disable "
Player Maker" in Every Interior of San Andreas. But I want it to Remain in Virtual World.
Its not "DisableInteriorEnterExits();" Player Markers.
Thanks in Advance.
Re: How to Disable "Player Marker" in Every Interior ? -
Adarsh007 - 13.06.2015
Anyone ? please ? I ll Rep+
Re: How to Disable "Player Marker" in Every Interior ? -
Alpay0098 - 13.06.2015
Can you explain more and give me an example?
Re: How to Disable "Player Marker" in Every Interior ? -
Darkwood17 - 13.06.2015
You mean to disable
ShowPlayerMarkers?
Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Re: How to Disable "Player Marker" in Every Interior ? -
Alpay0098 - 13.06.2015
Or you can use like below way :
https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Re: How to Disable "Player Marker" in Every Interior ? -
Adarsh007 - 13.06.2015
No,I want Player Markers.
My Problem is...When a Player Enter/Exit a Store its kidda look like teleport on mini map (radar).
I Just want to Disable ShowMarkers in Interior Only.
Maybe this ll work ? -
In OnPlayerUpdate.
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
SetPlayerMarkerForPlayer(playerid, i, 00 ); // if not 00 try 0xFF0000FF
}
}
Will it Work ? or cause lag/bug ? Im going right ? or theres another solution ?
Re: How to Disable "Player Marker" in Every Interior ? -
JaydenJason - 13.06.2015
make a global timer that repeats every second and do a loop and see if players are in interiors
then set their marker color 0x00000000
Re: How to Disable "Player Marker" in Every Interior ? -
Darkwood17 - 13.06.2015
Or just change the VirualWorld when player enters a interior.
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == 0) SetPlayerVirtualWorld(playerid, 0);
else if(newinteriorid != 0) SetPlayerVirtualWorld(playerid, 100);
return 1;
}
Re: How to Disable "Player Marker" in Every Interior ? -
Alpay0098 - 13.06.2015
Quote:
Originally Posted by Darkwood17
Or just change the VirualWorld when player enters a interior.
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == 0) SetPlayerVirtualWorld(playerid, 0);
else if(newinteriorid != 0) SetPlayerVirtualWorld(playerid, 100);
return 1;
}
|
He said, he wants to keep VW. Look at the first post.
Re: How to Disable "Player Marker" in Every Interior ? -
Adarsh007 - 13.06.2015
Okay..I ll make a Global TImer that will Keep Repeating...Lets Se if work