30.10.2018, 07:02
Just leave the function I gave you earlier converting the level to a string, and use it inside of your command like this, you don't even have to format because it's already returned as a string.
PHP Code:
ReturnAdminLevel(playerid)
{
new
string[64]
;
switch (pAdmin[playerid])
{
case 1: string= "Moderator";
case 2: string= "Game Administrator";
case 3: string= "Lead Administrator";
case 4: string= "Server Manager";
default: string= "Undefined";
}
return string;
}
CMD:aduty(playerid, params[])
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
Create3DTextLabel(ReturnAdminLevel(playerid), 0xFFA500FF, Pos[0], Pos[1], Pos[2], 40.0, 0, 0);
return 1;
}