iPrestege Posted March 21, 2013 Share Posted March 21, 2013 Hello Guys , I Have Problem With My Script It's Not A Problem Realy ._. But It's Problem For Some People My Script : ----------------------- -- ** Buy Admin's Script -- Created By Mr.Pres[T]ege -- Ver 1.0.0 -- Mail : [email protected] ---------------------- xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * You Should Register First!",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** You Are AlReady Have This Rank ! ",source,255,0,0,true); end if ( getPlayerMoney ( source ) >= tonumber(Price)) then takePlayerMoney ( source , tonumber(Price)) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("** You Have Been Bought| "..Name.." | "..Price.." $",source,0,255,0,true); else outputChatBox("** You Don't Have Money",source,255,0,0,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) The problem is that the script works Great in my host but it's not work in my friend server! When the player trying to buy a rank the script not give the player the rank ! I hope that someone will help me Thank you # Link to comment
TAPL Posted March 21, 2013 Share Posted March 21, 2013 Maybe because the script is not added in ACL Admin group? Link to comment
iPrestege Posted March 21, 2013 Author Share Posted March 21, 2013 Maybe because the script is not added in ACL Admin group? No, it added, and I'm sure of it . Link to comment
TAPL Posted March 21, 2013 Share Posted March 21, 2013 Well, then the admin group might not have right for "function.aclGroupAddObject" Link to comment
iPrestege Posted March 21, 2013 Author Share Posted March 21, 2013 Well, then the admin group might not have right for "function.aclGroupAddObject" Ammm I really do not know this, but will I check this now! Link to comment
iPrestege Posted March 21, 2013 Author Share Posted March 21, 2013 Well, then the admin group might not have right for "function.aclGroupAddObject" Ok,Now work's fine thank's "TAPL" . Link to comment
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