KaZoOzh Posted June 20, 2013 Author Share Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 addEventHandler("onClientGUIClick", root, function ( thePlayer ) if source == btn then takePlayerMoney( thePlayer, M ) end end) خذ الكود ذذ * M = الفلوس اللي تبيه ينسحب * btn = الزر Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه Link to comment
iPrestege Posted June 20, 2013 Share 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. Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share 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 = الزر Link to comment
KaZoOzh Posted June 20, 2013 Author Share Posted June 20, 2013 مشكور ي شباب والله شكلي متعبك ي 6ArHxiMr'3a[Z]eF Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 عادي أسمع خذ الكود مرهـ ثانية عدلت فيه * ناديني عازف ذذ Link to comment
KaZoOzh Posted June 20, 2013 Author Share Posted June 20, 2013 اوكي ول يهمك ي عازف ض2 Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share 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 ) جرب الحين Link to comment
KaZoOzh Posted June 20, 2013 Author Share Posted June 20, 2013 طيب وش اتغير ؟ م في فرق ؟ Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 (edited) أشتغل يعني؟ اللوكال بلاير حطيته بالكلينت Edited June 20, 2013 by Guest Link to comment
iPrestege Posted June 20, 2013 Share 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 Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share 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 ) هذي ما فهمتها يأخذ فلوس الكلينت؟ Link to comment
iPrestege Posted June 20, 2013 Share 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 ) هذي ما فهمتها يأخذ فلوس الكلينت؟ ياخذ فلوس اللي اتصل من كلنت Link to comment
iMr.3a[Z]eF Posted June 20, 2013 Share Posted June 20, 2013 أهااا ما شاء الله عليك ذكي Link to comment
KaZoOzh Posted June 20, 2013 Author Share Posted June 20, 2013 اخييرنـ ضضبط ي عطيكم الف ع ـفيهأ Link to comment
K1NG Posted June 20, 2013 Share Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه هههههههههههههههههههههههههههههههههههههههههههههههههههههه : ( تقدر تقلي الخراب الي فيه يَ بعد قلبي أنت ؟ Link to comment
PaiN^ Posted June 20, 2013 Share 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 المفروض تتحقق من فلوس اللاعب انها أكبر من المبلغ عشان لاتصير فلوسه بالسالب Link to comment
iMr.Dawix~# Posted June 20, 2013 Share Posted June 20, 2013 addEventHandler ( "onClientGUIClick", ButtonName, function ( --فنكشن ) if ( getPlayerMoney ( ) >= 100 ) then -- Any thing .. end end, false ) هذا الكود خربان لا تستخدمه getPlayerMoney هذا الفنكشن بالكلنت بيجيب الفلوس بدون ما تحدد مين فلوسه يجيب فلوس الي ضغط الي هو الكلنت بس بالسيرفر لازم تحدد فلوس مين الي يتأكد منها Link to comment
RdX Posted June 22, 2013 Share Posted June 22, 2013 addEventHandler ( "onClientGUIClick", ButtonName, -- بتن نيم اسم البتن الي تبي يتأاأكد من فلوسه function ( ) if ( getPlayerMoney ( ) >= 100 ) then -- 100 الفلوس -- guiCreateButton .. end end, false ) تم التأأكد من الاكواد 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