16.08.2011, 11:11
Quote:
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 |
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 ) );
}
}
I hope this helps.
Kind Regards,
Improvement™