28.02.2014, 18:37
hello.
i have a problem with the /viptag command
when i go in game i type /viptag but players cant see my tag up to the head ...
do anyone fix the problem that i made here?
i have a problem with the /viptag command
when i go in game i type /viptag but players cant see my tag up to the head ...
do anyone fix the problem that i made here?
pawn Код:
CMD:viptag(playerid, params[])
{
new string[64];
new Text3D:label = Create3DTextLabel(string, COLOR_VIOLET, 30.0, 40.0, 50.0, 40.0, 0);
if(PlayerInfo[playerid][pVip] >=1 )
{
if(viptag[playerid] == 0)
{
viptag[playerid] = 1;
format(string,sizeof(string), "%s",GetVipLvlName(playerid));
GameTextForPlayer(playerid, "~p~VIP Tag Activated.",3000,5);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.3);
}
else
{
viptag[playerid] = 0;
DeletePlayer3DTextLabel(playerid, PlayerText3D:label);
GameTextForPlayer(playerid, "~r~ VIP Tag Deactivated.",3000,5);
}
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}