™!>VàLéNTiNô<!™ Posted May 5, 2014 Share Posted May 5, 2014 (edited) 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 May 6, 2014 by Guest Link to comment
™!>VàLéNTiNô<!™ Posted May 6, 2014 Author Share Posted May 6, 2014 الداتا استخدامها صحيح ام لا + يتحقق من اللاعب يمتلك هل تواجدو ثانية اواكتر وان كان تواجدو ليس ثانية او اكثر لاياخد رتبة مافى يشتغل من كل ها 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