Jump to content

حل مشكلة بكووود ><


#Dr.BnG

Recommended Posts

السلام عليكم

عندي مود مثل العاجل

اكتب شي من حرف ه وتظهر للكل مثل عاجل

بس عندي مشكلة

ابي اخلي مافي احد يكتب فيه غير برتبة معينة

محاولتي الفاشلة :|

local Groups = { "RandomWords", "word" }

function isPlayerAdmin(player)
    for k,v in ipairs ( Groups ) do
        if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then
		    return true
		end
	end
end

for k,v in ipairs ( {"randomcode","randomword","RW","rd"} ) do
addCommandHandler(v,function(plr,cmd,prize,...)
	if plr and hasObjectPermissionTo(plr,"function.kickPlayer") then
		if ( not prize ) then
			makeRandomCode()
		else
			word = table.concat({...}, " ")
			if ( word ) then
				makeRandomCode(word,prize)
			end
		end
	end
end )
end

ابي احد يظبطلي الكود يخله ما يكتب غير بالرتب ذي

وشكرا

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