Quote:
Originally Posted by UFF
pawn Code:
CMD:aduty(playerid, params[]) { new id;
if(IsAdmin(playerid)) { if(IsOnAdminDuty(playerid)) { PlayerInfo[playerid][pAdminDuty] = 0; SendClientMessage(playerid, COLOR_YELLOW, "You are now off duty."); DestroyDynamic3DTextLabel(PlayerAdminLabel[playerid]); } else { PlayerAdminLabel[playerid] = CreateDynamic3DTextLabel(ReturnAdminLevel(playerid), 0xFFA500FF, 0, 0, 0, 40.0, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0); PlayerInfo[playerid][pAdminDuty] = 1; SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on duty as a %s", ReturnAdminLevel(id)); } } else return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not an Administrator!");
return 1; }
Try this
|
This does work, but how do I make it so the tag stays put if I come closer? Right now if I go further away the tag moves up