SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: 4D1L
Forum: Scripting Help 08/12/2019, 12:05 AM
Replies: 15
Views: 701
Posted By 4D1L
Re: Show cops on radar (only for other cops)

What are you returning in IsACop?

Instead of using OnActorStreamIn, use OnPlayerStreamIn. Actors are not players nor are they NPCs.
Forum: Scripting Help 03/12/2019, 03:41 PM
Replies: 15
Views: 701
Posted By 4D1L
Re: Show cops on radar (only for other cops)

If the two players aren't the same teams then I would SetPlayerMarkerForPlayer using a different colour.

In your case, SetPlayerMarkerForPlayer in an else block after your two if statements will...
Forum: Scripting Help 02/12/2019, 08:39 PM
Replies: 15
Views: 701
Posted By 4D1L
Re: Show cops on radar (only for other cops)

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

I would call SetPlayerMarkerForPlayer in both OnPlayerStreamIn...
Showing results 1 to 3 of 3

 

All times are GMT. The time now is 05:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.