SA-MP Forums Archive
Premium Member Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Premium Member Problem (/showthread.php?tid=174376)



Premium Member Problem - fie - 05.09.2010

I want to make it so

when people get premium they will get red text over there head

saying premium member

Please help on this

If you can do this you are the best scripter in the world!!


Re: Premium Member Problem - Mauzen - 05.09.2010

pawn Код:
new Text3D:premiumtext[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    if(IsPlayerPremium(playerid))
    {
        premiumtext[playerid] = Create3DTextLabel("Premium Member", 0xAA3333AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
        Attach3DTextLabelToPlayer(premiumtext[playerid], 0.0, 0.0, 1.3);
    }
}

public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(premiumtext[playerid]);
}