12.03.2013, 01:58
So I've scripted in a command, where a vip member can do /vtag to activate/deactivate his tag. But for some reason the textlabel isn't showing up on the player.
Maybe you guys will know whats wrong, thanks.
pawn Код:
CMD:vtag(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >=1 )
{
new Text3D:label = Create3DTextLabel("VIP", COLOR_VIOLET, 30.0, 40.0, 50.0, 40.0, 0);
if(viptag[playerid] == 0 )
{
GameTextForPlayer(playerid, "~p~VIP Tag Activated.",3000,5);
viptag[playerid] = 1;
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
else
{
GameTextForPlayer(playerid, "~r~VIP Tag Deactivated",3000,5);
viptag[playerid] = 0;
DeletePlayer3DTextLabel(playerid, PlayerText3D:label);
}
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}