Code 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)
+--- Thread: Code help. (
/showthread.php?tid=608156)
Code help. -
karoliko - 28.05.2016
Hello i am using the callback OnPlayerWeaponShot and and i added a function which mark the players.
But i want to make the function always, doesnґt matter if he shot objects players or nothing, just if he shot.
How i can do this1?
Re: Code help. -
RedCounty - 28.05.2016
Use
SetPlayerMarkerForPlayer under OnPlayerWeaponShot, it'll detect if they've shot as soon as they do, then mark them on the map.
Re: Code help. -
karoliko - 28.05.2016
Quote:
Originally Posted by RedCounty
Use SetPlayerMarkerForPlayer under OnPlayerWeaponShot, it'll detect if they've shot as soon as they do, then mark them on the map.
|
I did it already, but only mark players when get hitteds.
Re: Code help. -
oMa37 - 28.05.2016
Why don't just use ShowPlayerMarkers?
Re: Code help. -
karoliko - 28.05.2016
Quote:
Originally Posted by oMa37
Why don't just use ShowPlayerMarkers?
|
Because i have a TDM server, and i want to make if someone player shot, he will appear in the enemy radar for 3 seconds.