Jump to content

Acl Group Add Object What's The Problem?


iPrestege

Recommended Posts

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

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