Jump to content

طلب تصحيح كود مرتبط بالداتا


Recommended Posts

Client Side

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  a ) then 
triggerServerEvent("time",getLocalPlayer())  
    end 
end  
)  

Server Side

addEvent("time",true)  
addEventHandler("time", root,  
function () 
local account = getAccountName(getPlayerAccount(source)) 
local name = getPlayerName(source) 
if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,0,true) end 
local Nv = getElementData ( source, 'Time' ) 
if Nv >= 1 then 
aclGroupAddObject(aclGetGroup("Na5el"), "user."..account) 
outputChatBox ( "#ffffff" .. name .. " #ffffff قام بشراء منصب كنق النخيل ...", source, 255, 255, 255, true ) 
if not getElementData ( source, "Time" ) >= 1 then return  outputChatBox(" * يجب عليك التواجد يا عزيزى",source,255,0,0,true) end 
            end 
        end 
    ) 
     

Edited by Guest
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...