#STZ Posted June 9, 2016 Posted June 9, 2016 السلام عليكم و رحمة الله و بركاته اليوم عندي في لوحة 4 ازرار الزر الاول يعطي درع و الثاني صحة و الثالث يحمي ما حد يقدر يقتل و االرابع يعطي اللاعب سيارة ايدي 409 حولت بكل الطرق ما نفعت الزر اللاول = btn1 الزر الثاني = btn2 الزر الثالث = btn3 الزر الرابع = btn4 اسم اللوحة = wnd
Adham Posted June 9, 2016 Posted June 9, 2016 جب محاولتك ^ قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
#STZ Posted June 9, 2016 Author Posted June 9, 2016 جب محاولتك ^ معرفت اسوي غير ذا خخخخخخخخخخخخخ function armour() if source == Ar then setPedArmor ( player, 100 )
Adham Posted June 9, 2016 Posted June 9, 2016 addEventHandler("onClientGUIClick",root, function () if ( source == btn1 ) then triggerServerEvent ( "SetArmor", localPlayer) end end ) ------------- Server addEvent ( "SetArmor", true ) addEventHandler ( "SetArmor", root, function ( player ) setPedArmor ( player, 100 ) end ) addEventHandler("onClientGUIClick",root, function () if ( source == btn2 ) then setElementHealth ( localPlayer,100 ) end end ) وضح طلبك التالت قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
iMr.WiFi..! Posted June 9, 2016 Posted June 9, 2016 تفضل بس المرات الجاية تتحسن مع الاكواد : --Client addEventHandler("onClientGUIClick",root,function ( ) if source == btn1 then triggerServerEvent("Accept:The:arrmour",localPlayer) elseif source == btn2 then triggerServerEvent("Accept:The:Hel",localPlayer) elseif source == btn3 then addEventHandler("onClientPlayerDamage",root,cancelEvent()) elseif source == btn4 then triggerServerEvent("Acc:My:Car",localPlayer,409) end end ) --Server Cars = {} addEvent("Accept:The:arrmour",true) addEventHandler("Accept:The:arrmour",root,function ( ) setPedArmor ( source, 100 ) end ) addEvent("Accept:The:Hel",true) addEventHandler("Accept:The:Hel",root,function ( ) setElementHealth ( source,100 ) end ) addEvent("Acc:My:Car",true) addEventHandler("Acc:My:Car",root, function ( ID ) local x,y,z = getElementPosition(source) Cars[source] = createVehicle(ID,x,y,z) end ) Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
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