25.04.2009, 11:50
I had it working but now it doesnt..
This function used to get your player color, like green, then make you invisible, all it does is make your name black now. Unless i predefine the tmpcolor like tmpcolor = 0x9ACD32AA, then it works fine.
Does anybody know why?
Thnx!
pawn Код:
stock ToggleBlipVisibilty(playerid, bool:visible)
{
new tmpcolor = GetPlayerColor(playerid);
if(visible == true) tmpcolor &= 0xFFFFFF00;
else tmpcolor |= 0x000000FF;
SetPlayerColor(playerid, tmpcolor);
}
dcmd_acvis(playerid, params[])
{
#pragma unused params
if(_LOGIN_Rank[playerid] > 1)
{
ToggleBlipVisibilty(playerid, true);
}
return 1;
}
Does anybody know why?
Thnx!