Jump to content

isObjectInACLGroup مشكلة


Guest

Recommended Posts


function info ( command,msg )
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
	if command == "setinfo" then
		message = msg
		addEventHandler("onClientRender", getRootElement(), drawText) 
	elseif command == "stopinfo" then
		removeEventHandler("onClientRender", getRootElement(), drawText)
		message = nil
		end
	end
end
addCommandHandler("setinfo", info) 
addCommandHandler("stopinfo", info)

function drawText()
	local screenW, screenH = guiGetScreenSize ()
	local localPlayerName = getPlayerName(getLocalPlayer())
	dxDrawText(""..message.." Hosted by: "..localPlayerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false)
	dxDrawText(""..message.." Hosted by: "..localPlayerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
	end

ايش الخطأ؟

Link to comment
8 minutes ago, Scarfas said:

function info ( command,msg )
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
	if command == "setinfo" then
		message = msg
		addEventHandler("onClientRender", getRootElement(), drawText) 
	elseif command == "stopinfo" then
		removeEventHandler("onClientRender", getRootElement(), drawText)
		message = nil
		end
	end
end
addCommandHandler("setinfo", info) 
addCommandHandler("stopinfo", info)

function drawText()
	local screenW, screenH = guiGetScreenSize ()
	local localPlayerName = getPlayerName(getLocalPlayer())
	dxDrawText(""..message.." Hosted by: "..localPlayerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false)
	dxDrawText(""..message.." Hosted by: "..localPlayerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
	end

ايش الخطأ؟

thePlayer مو معرفه

Link to comment
15 minutes ago, Scarfas said:

معك حق شكرا

طيب يعني اسوي ملف كلينت سايد ايش اكتب فيه؟

 

اكتب فيه الاكواد ذي

setElementShawrma

givePlayerBrost

takePlayerPhone

setPlayerBooks

setElementPositionInSchool

 

-___-

Edited by +Source|>
Link to comment
18 minutes ago, Scarfas said:

معك حق شكرا

طيب يعني اسوي ملف كلينت سايد ايش اكتب فيه؟


isObjectInACLGroup -- Server Side 

aclGetGroup -- Server Side

getPlayerAccount -- Server Side 

getAccountName -- Server Side 

------ 

onClientRender -- Clinet Side 

dxDrawText -- Clinet Side 

guiGetScreenSize -- Clinet Side





 

 
 
 
Link to comment

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...