MR_Mahmoud Posted June 21, 2018 Share Posted June 21, 2018 السلام عليكم بأختصار ابي لما اضغط زر يعطيه 10 ساعات تواجد Link to comment
KhaledX Posted June 21, 2018 Share Posted June 21, 2018 وين مود الساعات اللي تستعمله ؟ 1 Link to comment
MR_Mahmoud Posted June 22, 2018 Author Share Posted June 22, 2018 7 minutes ago, KhaledAlamri said: وين مود الساعات اللي تستعمله ؟ شوي اجيبه بس خدلك ضيافة الأكواد هادي ماعمتصير كانت شغالة بس ضفتلها يجيب اسم الاعب ويطلع في الدي بق السطر 3 فيه مشكلة xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); local PlayerName = getPlayerName(getLocalPlayer()) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("اَ",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(exAdmin)) then return outputChatBox(" ",source,255,0,0,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); exports.guimessages:outputServer( root,..Name.. "بشراء رتبة ~[" ..PlayerName.. "]~ | #ffffff*قام الاعب ",source,0,255,0,true); 15 minutes ago, KhaledAlamri said: وين مود الساعات اللي تستعمله ؟ -- Server Side : --[[ ------------------------------------------------- original script credits to Yakuza.Real and solidsnake and kenix viewtopic.php?f=91&t=40132 ------------------------------------------------- booo just fix it Mr.Pres[T]ege : Remake the script using ( SQL ) To Save it . PlayTime ]] exports.scoreboard:addScoreboardColumn('PlayTime') Link to comment
N3xT Posted June 22, 2018 Share Posted June 22, 2018 getLocalPlayer() احذفها وحط بدالها source 1 Link to comment
MR_Mahmoud Posted June 22, 2018 Author Share Posted June 22, 2018 27 minutes ago, N3xT said: getLocalPlayer() احذفها وحط بدالها source ياخي انت الواحد كيف يشكرك بجد شكرا من القلب Link to comment
MR_Mahmoud Posted June 22, 2018 Author Share Posted June 22, 2018 2 hours ago, MR_Mahmoud said: السلام عليكم بأختصار ابي لما اضغط زر يعطيه 10 ساعات تواجد @Mr.Mostafa ممكن افادة Link to comment
^iiEcoo'x_) Posted June 22, 2018 Share Posted June 22, 2018 'onClientGUIClick' setElementData -- "PlayTime" Link to comment
MR_Mahmoud Posted June 22, 2018 Author Share Posted June 22, 2018 (edited) 4 hours ago, #_iMr,[E]coo said: 'onClientGUIClick' setElementData -- "PlayTime" طيب وشلون احدد كم ساعه ياخد ؟ محاولتي addEventHandler ( "onClientGUIClick" , root , function ( ) if source == button1 then setElementData,PlayTime,20 end end ) Edited June 22, 2018 by MR_Mahmoud Link to comment
Mr.Mostafa Posted June 22, 2018 Share Posted June 22, 2018 6 minutes ago, N3xT said: اطرح اكواد مود الساعات كاملة +1 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