10.11.2017, 04:21
the bandana code is this
and the textdraw code is this
once i used /bandana it didn't color the textdraw can someone make me?
Код:
CMD:bandana(playerid, params[])
{
if(PlayerInfo[playerid][pGang] == -1)
{
return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
}
if(!PlayerInfo[playerid][pBandana])
{
PlayerInfo[playerid][pBandana] = 1;
SendClientMessage(playerid, COLOR_AQUA, "You have enabled your bandana. Your nametag color has been set to your gang color.");
}
else
{
PlayerInfo[playerid][pBandana] = 0;
SendClientMessage(playerid, COLOR_AQUA, "You have disabled your bandana. Your nametag color was reset back to normal.");
}
return 1;
}
Код:
{
format(string, sizeof(string), "%s\n{F40E0E}HP: %.0f - {FFFFFF}AR: %.0f", GetPlayerRPName(playerid), GetPlayerHealth(playerid), GetPlayerArmour(playerid));
PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
}


