Posts: 84
Threads: 18
Joined: Sep 2012
Reputation:
0
Hi guys,
how can I make visible the marker when the player fires with a weapon?
When player shoot, your marker is visible..
thanks in advance.
Posts: 1,938
Threads: 16
Joined: Feb 2007
Reputation:
0
I heard about a callback called OnPlayerShootPlayer, you can use that. Or check if the player pressed the KEY_FIRE.
Posts: 84
Threads: 18
Joined: Sep 2012
Reputation:
0
Yes, I could use the setplayercolor, but.. If I have a team deathmatch with different colors?
Of course I could do:
Light Blue -> My Team
Red -> opposing team . Red when shoot and Trasparent when it doesn't shoot
Right?
thanks again
*Sorry my bad english..
Posts: 84
Threads: 18
Joined: Sep 2012
Reputation:
0
Ok, but how to re put the color before?
Es:
when shoot : SetPlayerColor(playerid, RED); and when doesn't shoot?
Posts: 1,938
Threads: 16
Joined: Feb 2007
Reputation:
0
Shooting: SetPlayerColor(playerid, 0xFF0000FF); // fully visible
Not shooting: SetPlayerColor(playerid, 0xFF000077); // half visible
(colors are an example- though HEX value is RED)