Sign in to follow this  
Outlaw

ترايقر

Recommended Posts

السلام عليكم

شباب مش فاهم وين الخطأ؟ ما في شي بالديبق

function powers(c,pw) 	
	local val = isValidPower(pw)
	if val then
		local ws = not isWorldSpecialPropertyEnabled(val)
		setWorldSpecialPropertyEnabled(val,ws)
		local mt = getToggle(ws)
		outputChatBox("#006400•#ffffff "..val.." #006400has been "..mt.."!",255,255,255,true)
	else
		outputChatBox("• Power not found",255,0,0)
	end
end
addCommandHandler("pw",PW.Toggle)
addEvent("tstaffpowers",true)
addEventHandler("tstaffpowers",root,PW.Toggle)
function checkstaff(thePlayer)
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
	 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then
	     triggerClientEvent (root, "tstaffpowers", thePlayer)	
		else
	outputChatBox("لا تستطيع",thePlayer,255,0,0)
	end
end

 

Share this post


Link to post

مو شايف فنكشن isValidPower

وبعدين كيف بتستعمل الفنكشن حق السيرفر ذا؟ ما اشوف له اي استعمال

انصحك تحط الكوماند هاندلر ف جهة سيرفر وتتحقق هناك انه ادمن بعدها ترسل لجهة كلنت ، الي مسويه حالياً غلط

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.