KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function ( thePlayer ) if source == btn then takePlayerMoney( thePlayer, M ) end end) خذ الكود ذذ * M = الفلوس اللي تبيه ينسحب * btn = الزر To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 أوكيشن اي كذا Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه To Visit Us Press Here: mtasa://5.9.206.180:22002
iPrestege Posted June 20, 2013 Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function ( thePlayer ) if source == btn then takePlayerMoney( thePlayer, M ) end end) خذ الكود ذذ * M = الفلوس اللي تبيه ينسحب * btn = الزر Wrong + Note: Using this function client side (not recommended) will not change a players money server side.
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function ( thePlayer ) if source == btn then takePlayerMoney( thePlayer, M ) end end) خذ الكود ذذ * M = الفلوس اللي تبيه ينسحب * btn = الزر Wrong + Note: Using this function client side (not recommended) will not change a players money server side. ههههههههههه نسيت لازم كلينت وسيرفر -- Client addEventHandler("onClientGUIClick", root, function ( thePlayer ) if source == btn then triggerServerEvent("give",localPlayer,localPlayer) end end) -- server side addEvent("give",true) addEventHandler("give",root, function () takePlayerMoney( thePlayer, M ) end ) * M = الفلوس اللي تبيه ينسحب * btn = الزر To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 مشكور ي شباب والله شكلي متعبك ي 6ArHxiMr'3a[Z]eF Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 عادي أسمع خذ الكود مرهـ ثانية عدلت فيه * ناديني عازف ذذ To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 اوكي ول يهمك ي عازف ض2 Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 طمنّي لو الكود أشتغل To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 لأ م ضبط ليه ! Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function () if localPlayer == btn then triggerServerEvent("give",localPlayer,localPlayer) end end) -- server side addEvent("give",true) addEventHandler("give",root, function () takePlayerMoney( thePlayer, M ) end ) جرب الحين To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 طيب وش اتغير ؟ م في فرق ؟ Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 (edited) أشتغل يعني؟ اللوكال بلاير حطيته بالكلينت Edited June 20, 2013 by Guest To Visit Us Press Here: mtasa://5.9.206.180:22002
iPrestege Posted June 20, 2013 Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function () if localPlayer == btn then triggerServerEvent("give",localPlayer,localPlayer) end end) -- server side addEvent("give",true) addEventHandler("give",root, function () takePlayerMoney( thePlayer, M ) end ) جرب الحين xxxxxxxxxxxxxxxxx ?? -- Client Side -- addEventHandler('onClientGUIClick',MyButton, function ( ) triggerServerEvent ( 'aTakeMoney',localPlayer ) end,false ) -- Server Side -- addEvent('aTakeMoney',true) addEventHandler('aTakeMoney',root, function ( ) takePlayerMoney ( client,Amount ) end ) لاتنسى تغير الزر و المبلغ .. MyButton Amount
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 xxxxxxxxxxxxxxxxx ?? -- Client Side -- addEventHandler('onClientGUIClick',MyButton, function ( ) triggerServerEvent ( 'aTakeMoney',localPlayer ) end,false ) -- Server Side -- addEvent('aTakeMoney',true) addEventHandler('aTakeMoney',root, function ( ) takePlayerMoney ( client,Amount ) end ) لاتنسى تغير الزر و المبلغ .. MyButton Amount takePlayerMoney ( client,Amount ) هذي ما فهمتها يأخذ فلوس الكلينت؟ To Visit Us Press Here: mtasa://5.9.206.180:22002
iPrestege Posted June 20, 2013 Posted June 20, 2013 xxxxxxxxxxxxxxxxx ?? -- Client Side -- addEventHandler('onClientGUIClick',MyButton, function ( ) triggerServerEvent ( 'aTakeMoney',localPlayer ) end,false ) -- Server Side -- addEvent('aTakeMoney',true) addEventHandler('aTakeMoney',root, function ( ) takePlayerMoney ( client,Amount ) end ) لاتنسى تغير الزر و المبلغ .. MyButton Amount takePlayerMoney ( client,Amount ) هذي ما فهمتها يأخذ فلوس الكلينت؟ ياخذ فلوس اللي اتصل من كلنت
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 أهااا ما شاء الله عليك ذكي To Visit Us Press Here: mtasa://5.9.206.180:22002
KaZoOzh Posted June 20, 2013 Author Posted June 20, 2013 اخييرنـ ضضبط ي عطيكم الف ع ـفيهأ Me: SaRE: SKype :arhabe_07 msn :JnD-@HotMaIl.cOm msn :JnD@HoTmAiL.CoM
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 الله يعافيك To Visit Us Press Here: mtasa://5.9.206.180:22002
K1NG Posted June 20, 2013 Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه هههههههههههههههههههههههههههههههههههههههههههههههههههههه : ( تقدر تقلي الخراب الي فيه يَ بعد قلبي أنت ؟
PaiN^ Posted June 20, 2013 Posted June 20, 2013 -- Client Side -- addEventHandler('onClientGUIClick',MyButton, function ( ) triggerServerEvent ( 'aTakeMoney',localPlayer ) end,false ) -- Server Side -- addEvent('aTakeMoney',true) addEventHandler('aTakeMoney',root, function ( ) takePlayerMoney ( client,Amount ) end ) لاتنسى تغير الزر و المبلغ .. MyButton Amount المفروض تتحقق من فلوس اللاعب انها أكبر من المبلغ عشان لاتصير فلوسه بالسالب " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iMr.Dawix~# Posted June 20, 2013 Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه getPlayerMoney هذا الفنكشن بالكلنت بيجيب الفلوس بدون ما تحدد مين فلوسه يجيب فلوس الي ضغط الي هو الكلنت بس بالسيرفر لازم تحدد فلوس مين الي يتأكد منها My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
RdX Posted June 22, 2013 Posted June 22, 2013 addEventHandler ( "onClientGUIClick", ButtonName, -- بتن نيم اسم البتن الي تبي يتأاأكد من فلوسه function ( ) if ( getPlayerMoney ( ) >= 100 ) then -- 100 الفلوس -- guiCreateButton .. end end, false ) تم التأأكد من الاكواد Level in Scripting : 37% Level in MTA : 100% Language in English : 100%
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