+Source|> Posted August 31, 2017 Share Posted August 31, 2017 ابي لما اللاعب يكتب اسمه في الايديت بوكس يجي اسمه في الجريد ليست محاولاتي الفااااشلة --سيرفر addEvent("send", true) addEventHandler("send", root, function( txt ) local acc = getPlayerAccount( source ) if not isGuestAccount( acc ) then if tonumber( getPlayerMoney( source ) ) >= tonumber( 3000000 ) then takePlayerMoney( source, tonumber( 3000000 ) ) setAccountData( acc, "save", txt ) playSoundFrontEnd( source, 42 ) outputChatBox( " تـم إرسال الحساب | الرجاء الانتظار مدة بين ساعه و 24 ساعه ", source, 255, 255, 0, true ) end end end ) addEvent("get", true) addEventHandler("get", root, function( player ) local acc = getPlayerAccount( player ) getAccountData( acc, "save", player ) end ) -- كلنت addEventHandler("onClientGUIClick", troot, function() local txt = guiGetText( edit ) if source == ok then if txt == "" then outputChatBox( " الرجاء كتابة إسم الحساب ", 255, 0, 0, true ) return end triggerServerEvent( "send", localPlayer, txt ) end end ) rr = triggerServerEvent( "get", localPlayer ) function refresh () guiGridListClear( grd ) for i,v in ipairs ( rr ) do local row = guiGridListAddRow( grd ) guiGridListSetItemText( grd, row, 1, tostring( rr ( v ) ), false, false ) end end 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