27.09.2012, 17:53
okay at the top of your script :
then CTRL + F for a stock if you find one post this under it :
And now
if it's still not working pm me your teamviewer shit.
pawn Код:
new Text3D:label[MAX_PLAYERS];
pawn Код:
stock AdminLevelToName(playerid)
{
new admin[128];
switch(playerInfo[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 Код:
COMMAND:admintag(playerid,params[])
{
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);
return 1;
}