08.02.2008, 11:29
Cool, you could do this:
---
Makes the color invisble^, so it wil flash the players color (lets say yellow) every second ^^, instead of flashing 2 different colors
Code:
public BlipFunc(playerid, color1, color2) { if(IsPlayerConnected(playerid)) { if(GetPlayerColor(playerid) == color1) { SetPlayerColor(playerid, color2); } else if(GetPlayerColor(playerid) == color2) { SetPlayerColor(playerid, GetPlayerColor(playerid) | 0x000000FF); } } return 0; }
Code:
SetPlayerColor(playerid, GetPlayerColor(playerid) | 0x000000FF);