Zsoltisz Posted October 5, 2016 Posted October 5, 2016 (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 October 5, 2016 by Zsoltisz
Mr.Loki Posted October 5, 2016 Posted October 5, 2016 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now