About /dm1 - Disable Player See And Player Arrow When they are not in DM
#4

Quote:
Originally Posted by lyrics
Посмотреть сообщение
I was meaning that when player is not inside of DM he/she can not see the player and player arrow color

when he/she is on inside dm he can see the player and the player arrow

thats what i mean
You can do this by using the following functions/callbacks:
OnPlayerUpdate
IsPlayerInRangeOfPoint
SetPlayerMarkerForPlayer



Here's an example:
pawn Код:
public OnPlayerUpdate(playerid)
{
    //IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
    if(IsPlayerInRangeOfPoint(playerid, 100.0, 200.00, 200.00, 25.00))
    {
        // Make player 42 see player 1 as a red marker
        SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
 
        // Make the players marker an invisible white (chat will be white but marker will be gone).
        SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
        // Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
        SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
 
        // Make the players marker fully opaque (solid) to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
        SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );
    }
}
IMPORTANT NOTE: This is just an example, I'm not telling you that this is the best option.

I hope this helps.

Kind Regards,
Improvement™
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)