27.09.2012, 17:17
pawn Код:
stock AdminLevelToName(playerid)
{
new admin[128];
switch(playerVariables[playerid][pAdminLevel])
{
case 1:
{
admin = "Junior Administrator";
}
case 2:
{
admin = "Senior Administrator";
}
case 3:
{
admin = "Head Administrator";
}
case 4:
{
admin = "Community Advisor";
}
case 5:
{
admin = "Elite Administrators";
}
case 1337:
{
admin = "Server Co-Owner";
}
case 1338:
{
admin = "Server Owner";
}
}
return admin;
}
pawn Код:
format(string, sizeof(string), "%s %s \n "EMBED_WHITE" ..-rp Administrator.", AdminLevelToName(playerid), szPlayerName);
label[playerid] = Create3DTextLabel(string, COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
pawn Код:
new Text3D:label[MAX_PLAYERS];