#1

I Am Just Playing With My Friend On My Server And I Found That When My Friend Enters A Building his Icon Shows In Another Country Like If I Am Playing In San Fierro And If I Will Enter A Building Then My Icon On Map Shows In Los Santm.I Know The Cause Of It Because Coordination Are Of There So it Shows the location of my player there But How i Can make That If I Player Enter A Building His Icon Got Disappear From Map And If he Get outside The Building His Icon Comes Back
Reply
#2

This is what you're looking for.
Change the players color to transparent when he enters.
Then set it back to it's default value when he exits.

PHP код:
//Top of script
new formerColor;
// When player enters
for(new i=0;i<MAX_PLAYERS;i++)
{
    
formerColor GetPlayerColor(playerid);
    
SetPlayerMarkerForPlayer(iplayerid, ( formerColor 0xFFFFFF00 ) );
}
// When player Exits
for(new i=0;i<MAX_PLAYERS;i++)
{
    
SetPlayerMarkerForPlayer(iplayerid, ( GetPlayerColorplayerid) & formerColor ) );

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)