07.12.2014, 12:48
Quote:
when they connect, set their color like so:
pawn Код:
it's RGBA Red Green Blue Alpha also, if you hppen to save the color in the players account file, you could get that color and bitwise AND it with the negation of 255(0xFF) to keep it for the chat and still be invincible on the map. like this, 0x0000FFFF (blue,visible) will become 0x0000FF00 (blue, invincible) pawn Код:
|
PHP код:
if (strcmp("/inv", cmdtext, true, 10) == 0)
{
SetPlayerColor(playerid, GetPlayerColor(playerid) & ~0xFF);
return 1;
}
if (strcmp("/uninv", cmdtext, true, 10) == 0)
{
SetPlayerColor(playerid, GetPlayerColor(playerid) | 0xFF);
return 1;
}
Please make me the code works
![Sad](images/smilies/sad.gif)