22.03.2014, 15:48
Quote:
Thanks for the help, but I don't think it worked. Backpacks seem to be working, but Player Colors are not.
|
pawn Код:
//PLAYER COLORS
if (PlayerInfo[playerid][pNamecolor] == 0)
{
SetPlayerColor(playerid,COLOR_WHITE);
}
if (PlayerInfo[playerid][pNamecolor] == 1)
{
SetPlayerColor(playerid,COLOR_CYAN);
}
if (PlayerInfo[playerid][pNamecolor] == 2)
{
SetPlayerColor(playerid,COLOR_RED);
}
if (PlayerInfo[playerid][pNamecolor] == 3)
{
SetPlayerColor(playerid,COLOR_BLUE);
}
if (PlayerInfo[playerid][pNamecolor] == 4)
{
SetPlayerColor(playerid,COLOR_GREEN);
}
if (PlayerInfo[playerid][pNamecolor] == 5)
{
SetPlayerColor(playerid,COLOR_ORANGE);
}
if (PlayerInfo[playerid][pNamecolor] == 6)
{
SetPlayerColor(playerid,COLOR_DARKRED);
}
if (PlayerInfo[playerid][pNamecolor] == 7)
{
SetPlayerColor(playerid,COLOR_DARKBLUE);
}
if (PlayerInfo[playerid][pNamecolor] == 8)
{
SetPlayerColor(playerid,COLOR_DARKGREEN);
}
if (PlayerInfo[playerid][pNamecolor] == 9)
{
SetPlayerColor(playerid,COLOR_PINK);
}
if (PlayerInfo[playerid][pNamecolor] == 10)
{
SetPlayerColor(playerid,COLOR_VIOLET);
}
if (PlayerInfo[playerid][pNamecolor] == 11)
{
SetPlayerColor(playerid,COLOR_INDIGO);
}