SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help (/showthread.php?tid=172587)



help - Roma555 - 30.08.2010

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?


Re: help - RSX - 30.08.2010

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.


Re: help - Roma555 - 30.08.2010

How to make my badge on a radar started to blink?


Re: help - Mike Garber - 30.08.2010

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