#1

Hello everybody. I have a some question..
How to make, that at input of a certain command, the my badge on a radar (for example a badge "pizzeria") started to blink.
And accordingly, how to make, that at input of a certain command the badge ceased to blink?

You understand me?
Reply
#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
#3

How to make my badge on a radar started to blink?
Reply
#4

Don't use translators, the grammar is so fucked up.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)