i maded a bandana , but i need little help about that when some one sue /bandana it work perfectly but its showing color map icon so i need some code tu put only color on name of player without map icon please help me out
Код:
}
CMD:bandana(playerid, params[])
{
if(GetPVarInt(playerid, "EventToken") == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You can't use this command while in an event.");
return 1;
}
if(PlayerInfo[playerid][pGang] == 0)
{
if(PlayerInfo[playerid][pDuty])
{
PlayerInfo[playerid][pDuty] = 0;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have hiden your bandana, and will now be identified as a citizen.");
}
else
{
PlayerInfo[playerid][pDuty] = 1;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerColor(playerid, COLOR_GREEN);
SendClientMessage(playerid, COLOR_WHITE, "You have shown your bandana, and will now be identified as a gangster.");
}
}
else if(PlayerInfo[playerid][pGang] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 3)
{
if(PlayerInfo[playerid][pDuty])
{
PlayerInfo[playerid][pDuty] = 0;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have hiden your bandana, and will now be identified as a citizen.");
}
else
{
PlayerInfo[playerid][pDuty] = 1;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerColor(playerid, COLOR_PURPLE);
SendClientMessage(playerid, COLOR_WHITE, "You have shown your bandana, and will now be identified as a gangster.");
}
}
else if(PlayerInfo[playerid][pGang] == 4)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 5)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 6)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 7)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 8)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 9)
{
if(PlayerInfo[playerid][pDuty])
{
PlayerInfo[playerid][pDuty] = 0;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have hiden your bandana, and will now be identified as a citizen.");
}
else
{
PlayerInfo[playerid][pDuty] = 1;
PlayAnim(playerid, "goggles", "goggles_put_on", 4.0, 0, 0, 0, 0, 0, 1);
SetPlayerColor(playerid, COLOR_RED);
SendClientMessage(playerid, COLOR_WHITE, "You have shown your bandana, and will now be identified as a gangster.");
}
}
else if(PlayerInfo[playerid][pGang] == 10)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 11)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 12)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
else if(PlayerInfo[playerid][pGang] == 13)
{
SendClientMessage(playerid, COLOR_WHITE, "Want bandana? adminstrative request on forums it will take 24 hours Thank You!.");
}
return 1;
}