Show cops on radar (only for other cops)
#10

I believe reducing the number of times you call SetPlayerMarkerForPlayer could help you with your problem.

I would call SetPlayerMarkerForPlayer in both OnPlayerStreamIn and in OnPlayerStreamOut and then do checks between them.

Instead of your timer, the following would work:

pawn Code:
public OnPlayerStreamOut(playerid, forplayerid)
{
    if(IsACop(forplayerid) && IsACop(playerid))
    {
          SetPlayerMarkerForPlayer(playerid, forplayerid, COLOR_LIMEGREEN);
    }

    return 1;
}
Reply


Messages In This Thread
Show cops on radar (only for other cops) - by binnyl - 20.11.2019, 02:58
Re: Show cops on radar (only for other cops) - by binnyl - 22.11.2019, 02:30
Re: Show cops on radar (only for other cops) - by Hitek - 22.11.2019, 07:53
Re: Show cops on radar (only for other cops) - by Gforcez - 22.11.2019, 08:27
Re: Show cops on radar (only for other cops) - by binnyl - 22.11.2019, 15:40
Re: Show cops on radar (only for other cops) - by binnyl - 29.11.2019, 23:24
Re: Show cops on radar (only for other cops) - by binnyl - 30.11.2019, 21:14
Re: Show cops on radar (only for other cops) - by ApolloScripter - 30.11.2019, 23:23
Re: Show cops on radar (only for other cops) - by binnyl - 02.12.2019, 03:54
Re: Show cops on radar (only for other cops) - by 4D1L - 02.12.2019, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)