How to update the bandana color to textdraw?
#1

the bandana code is this
Код:
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;
}
and the textdraw code is this

Код:
{
		    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);
        }
once i used /bandana it didn't color the textdraw can someone make me?
Reply


Messages In This Thread
How to update the bandana color to textdraw? - by TitoRayne - 10.11.2017, 04:21
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 10.11.2017, 04:25
Re: How to update the bandana color to textdraw? - by Puff - 10.11.2017, 06:36
Re: How to update the bandana color to textdraw? - by TitoRayne - 11.11.2017, 02:28
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 11.11.2017, 05:44
Re: How to update the bandana color to textdraw? - by TitoRayne - 13.11.2017, 11:58
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 13.11.2017, 20:54

Forum Jump:


Users browsing this thread: 2 Guest(s)