new Text3D:label1[MAX_PLAYERS];
new Text3D:label2[MAX_PLAYERS];
OnplayerSpawn:
For Admins
switch(PlayerInfo[playerid][Level])
{
case 1:
{
label1[playerid] = Create3DTextLabel("(Tester)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
case 2:
{
label1[playerid] = Create3DTextLabel("(Co-Moderator)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
case 3:
{
label1[playerid] = Create3DTextLabel("(Moderator)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
case 4:
{
label1[playerid] = Create3DTextLabel("(Admin)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
case 5:
{
label1[playerid] = Create3DTextLabel("(Leader)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
case 6:
{
label1[playerid] = Create3DTextLabel("(Manager/CEO)", lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
}
VIPS
switch(PlayerInfo[playerid][pVip])
{
case 1:
{
label2[playerid] = Create3DTextLabel("(Bronze VIP 1)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
case 2:
{
label2[playerid] = Create3DTextLabel("(Bronze VIP 2)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
case 3:
{
label2[playerid] = Create3DTextLabel("(Silver VIP 1)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
case 4:
{
label2[playerid] = Create3DTextLabel("(Silver VIP 2)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
case 5:
{
label2[playerid] = Create3DTextLabel("(Gold VIP 5)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
case 6:
{
label2[playerid] = Create3DTextLabel("(Premium VIP 6)", yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
}
Onplayerdisconnect
if(PlayerInfo[playerid][Level] > 0) Delete3DTextLabel(label1[playerid]);
if(PlayerInfo[playerid][pVip] > 0) Delete3DTextLabel(label2[playerid]);
|