#2

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

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
}
My compiler actually compiled this even if it was in middle of script.
Reply


Messages In This Thread
help - by Roma555 - 30.08.2010, 18:11
Re: help - by RSX - 30.08.2010, 18:15
Re: help - by Roma555 - 30.08.2010, 20:57
Re: help - by Mike Garber - 30.08.2010, 21:56

Forum Jump:


Users browsing this thread: 2 Guest(s)