ALw7sH Posted March 13, 2013 Share Posted March 13, 2013 السلام عليكم ورحمة الله ابي تصحيح كود الكود شراء ملف سيرفر function dog2() if ( source == Button2 ) then local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then takePlayerMoney(source,50000) else outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, true ) end end end addEventHandler( "onClientGUIClick", root, dog2 ) Link to comment
TD[M]ER Posted March 13, 2013 Share Posted March 13, 2013 السلام عليكم ورحمة الله ابي تصحيح كودالكود شراء ملف سيرفر function dog2() if ( source == Button2 ) then local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then takePlayerMoney(source,50000) else outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, true ) end end end addEventHandler( "onClientGUIClick", root, dog2 ) جرب -- client side addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Button2 ) then triggerServerEvent("takeM",getLocalPlayer()) end end ) -- server side addEvent("takeM",true) addEventHandler("takeM",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then takePlayerMoney(source,50000) else outputChatBox("* لاتمتلك المبلغ المطلوب !", source, 255, 0, 0, true) end end ) Link to comment
yazan Posted March 13, 2013 Share Posted March 13, 2013 (edited) addEvent ( "takeM", true ) addEventHandler ( "takeM", root, function ( ) takePlayerMoney ( client, المبلغ ) end ) Edited March 13, 2013 by Guest Link to comment
PaiN^ Posted March 13, 2013 Share Posted March 13, 2013 ! كود تدمير صحيح, يزن كودك مو صحيح Link to comment
jafar Posted March 13, 2013 Share Posted March 13, 2013 addEvent ( "takeMoney", true ) addEventHandler ( "takeMoney", root, function ( ) takePlayerMoney ( client, المبلغ ) end ) Client = ? Link to comment
!#NssoR_) Posted March 13, 2013 Share Posted March 13, 2013 (edited) السلام عليكم server side# addEvent("NssoR",true) addEventHandler("NssoR",root, function () if (getPlayerMoney(source) >= 50000) then takePlayerMoney(source,50000) else outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, source, true) end end ) client # addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Button[2] ) then triggerServerEvent("NssoR", localPlayer) guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end) Edited March 13, 2013 by Guest Link to comment
jafar Posted March 13, 2013 Share Posted March 13, 2013 (edited) السلام عليكم server side# addEvent("NssoR",true) addEventHandler("NssoR",root, function () if (getPlayerMoney(source) >= 50000 ) then takePlayerMoney(source,50000) else outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, true ) end end ) client # W addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Button[2] ) then triggerServerEvent("NssoR", localPlayer) guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end) server side# addEvent("NssoR",true) addEventHandler("NssoR",root, function () if (getPlayerMoney(source) >= 15000 ) then takePlayerMoney(source,50000) else outputChatBox ( "* لاتمتلك المبلغ المطلوب !", 255, 0, 0, source, true ) end end ) Edited March 13, 2013 by Guest Link to comment
X-SHADOW Posted March 13, 2013 Share Posted March 13, 2013 X-SHADOW Come and Blow every Body ! addEventHandler( 'onClientGUIClick', root, function () if ( source == Button2 ) then triggerServerEvent('TakeMoney', localPlayer) end end ) addEvent('TakeMoney',true) addEventHandler('TakeMoney', root, function () if(getPlayerMoney(source) >=50000 )then takePlayerMoney(source, 50000 ) else outputChatBox("*Message Here !", source, 255, 0, 0, true) end end ) Link to comment
PaiN^ Posted March 13, 2013 Share Posted March 13, 2013 @jafar & @NssoR~ : ! عندكم خطأ بالمبلغ Link to comment
!#NssoR_) Posted March 13, 2013 Share Posted March 13, 2013 @jafar & @NssoR~ : ! عندكم خطأ بالمبلغ روح جرب الكود بنفسك وبتلاقيه يشتغل 100%100 لني مجربه قبل لا اطرحه -_-" Link to comment
PaiN^ Posted March 13, 2013 Share Posted March 13, 2013 @jafar & @NssoR~ : ! عندكم خطأ بالمبلغ روح جرب الكود بنفسك وبتلاقيه يشتغل 100%100 لني مجربه قبل لا اطرحه -_-" ><" توكـ معدله Link to comment
!#NssoR_) Posted March 13, 2013 Share Posted March 13, 2013 من زمان عدلته توك تلاحض ! Link to comment
yazan Posted March 13, 2013 Share Posted March 13, 2013 ! كود تدمير صحيح, يزن كودك مو صحيح كودي مع كلنت تدمير Link to comment
jafar Posted March 13, 2013 Share Posted March 13, 2013 ! كود تدمير صحيح, يزن كودك مو صحيح كودي مع كلنت تدمير كوودك غلط "-_- Link to comment
#Al-Ha[J]aRii Posted March 13, 2013 Share Posted March 13, 2013 ! كود تدمير صحيح, يزن كودك مو صحيح كودي مع كلنت تدمير لول كودك لين هو مع كلنت تدمير يصير لازم ترايقر كلنت لان addEventHandler + addEvent في الكلنت Link to comment
yazan Posted March 13, 2013 Share Posted March 13, 2013 ما فهمتك المهم ستفاد من تدمير 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