SA-MP Forums Archive
Only Appear On Map When Shots Fired - 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: Only Appear On Map When Shots Fired (/showthread.php?tid=167730)



Only Appear On Map When Shots Fired - Dmac_91 - 13.08.2010

Hey all, just wondering if anyone knew how to hide blips, but only make them appear when someone shoots their gun?

Thanks.


Re: Only Appear On Map When Shots Fired - rbN. - 13.08.2010

Something like this:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

    if(newkeys & KEY_FIRE)
    {
        SetPlayerMarkerForPlayer("OTHERPLAYERIDGOESHERE :>",playerid,0xFF0000FF );
    }
    return 1;
}
Dunno lol


Re: Only Appear On Map When Shots Fired - Claude - 13.08.2010

That function doesn't exists RobinOwnz lol @ SetPlayerMarkerForPlayer

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
        }
    }
    return 1;
}