How to Disable "Player Marker" in Every Interior ?
#1

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

Anyone ? please ? I ll Rep+
Reply
#3

Can you explain more and give me an example?
Reply
#4

You mean to disable ShowPlayerMarkers?

Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Reply
#5

Or you can use like below way :
https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Reply
#6

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 ?
Reply
#7

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
Reply
#8

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;
}
Reply
#9

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

Okay..I ll make a Global TImer that will Keep Repeating...Lets Se if work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)