Jump to content

Admin Duty Name


Zsoltisz

Recommended Posts

Posted (edited)

Hi guys. I made this script but i go in adminduty i don't the name, but when i go out in adminduty i see the names. What the prob?
 

local nametag_alpha = 1000
local jatekosid = getElementData ( player, "playerid" )
local adminduty = getElementData ( player, "adminduty" )
if adminduty == 0 then
dxDrawText(getPlayerNametagText( player ).." #7cc576("..jatekosid..")", sx, sy+10, sx, sy+10, tocolor( 255, 255, 255, nametag_alpha ), scale * _adminszoli_textsize, 'default', 'center', 'bottom',false,false,false,true )
elseif exports.StarMTA_core:Fejleszto(thePlayer) then
local adminrang = exports.StarMTA_core:AdminRang( player )
dxDrawText("#FFFFFF"..getPlayerNametagText( player ).." #32C8FF<"..adminrang.."/>", sx, sy+10, sx, sy+10, tocolor( 0, 240, 255, nametag_alpha ), scale * _adminszoli_textsize, 'default', 'center', 'bottom',false,false,false,true )
end
elseif exports.StarMTA_core:Tulajdonos(thePlayer) then
local adminrang = exports.StarMTA_core:AdminRang(player)
dxDrawText("#FFFFFF"..getPlayerNametagText( player ).." #598ed7(#"..adminrang..")", sx, sy+10, sx, sy+10, tocolor( 0, 240, 255, nametag_alpha ), scale * _adminszoli_textsize, 'default', 'center', 'bottom',false,false,false,true )

 

Edited by Zsoltisz
Posted

Code is incomplete to be able to tell the error and also alpha does not go higher than 255 so 1000 wont give you the right alpha it would give you an alpha of 235.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...