30.08.2010, 18:15
I can't see any specific function for that, so you may do it only with SetPlayerMapIcon and Timer, i can write proto for it, wait a little
My compiler actually compiled this even if it was in middle of script.
pawn Код:
forward SetMapIconBlinking(playerid, iconid, phase);
SetTimerEx("SetMapIconBlinking",250, 0, "iib", playerid, mapiconid, false);
public SetMapIconBlinking(playerid, iconid, phase)
{
if(phase) RemovePlayerMapIcon(playerid, iconid);
else SetPlayerMapIcon(playerid, iconid, X, Y, Z, Type, Color); // Terminate here, but need some condiction for it. Can be added just say it.
SetTimerEx("SetMapIconBlinking",250, 0, "iib", playerid, mapiconid, (phase - 1 *(-1)); // please don't mind my stupid way of switching 0 to 1 and counterwise
}