Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- --------------------------------------------------------------------------------
- • Map Flash •
- Autor: Allan Jader
- Date: 18/08/2010
- Function: Flash the map for the player who has streamed with another.
- ------------------------------------------------------------------------------*/
- #include <a_samp>
- forward GangZoneHide(playerid, gangzoneid, color, flashs);
- forward ShowGangZone(playerid, gangzoneid, color, flashs);
- new FlashMap;
- public OnFilterScriptInit()
- {
- FlashMap = GangZoneCreate(-3000.536, -3000.825, 3000.536, 3000.858);
- return 1;
- }
- public OnFilterScriptExit()
- {
- GangZoneDestroy(FlashMap);
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- GangZoneShowForPlayer(forplayerid, FlashMap, 0xC0C0C099);
- SetTimerEx("GangZoneHide",200,false,"iihi", forplayerid, FlashMap, 0xC0C0C099, 1);
- return 1;
- }
- public GangZoneHide(playerid, gangzoneid, color, flashs)
- {
- GangZoneHideForPlayer(playerid, gangzoneid);
- if(flashs) SetTimerEx("ShowGangZone",200,false,"iihi", playerid, gangzoneid, color, flashs);
- return 1;
- }
- public ShowGangZone(playerid, gangzoneid, color, flashs)
- {
- GangZoneShowForPlayer(playerid, gangzoneid, color);
- SetTimerEx("GangZoneHide",200,false,"iihi", playerid, FlashMap, color, flashs-1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement