#STZ Posted June 9, 2016 Share Posted June 9, 2016 السلام عليكم و رحمة الله و بركاته اليوم عندي في لوحة 4 ازرار الزر الاول يعطي درع و الثاني صحة و الثالث يحمي ما حد يقدر يقتل و االرابع يعطي اللاعب سيارة ايدي 409 حولت بكل الطرق ما نفعت الزر اللاول = btn1 الزر الثاني = btn2 الزر الثالث = btn3 الزر الرابع = btn4 اسم اللوحة = wnd Link to comment
#STZ Posted June 9, 2016 Author Share Posted June 9, 2016 جب محاولتك ^ معرفت اسوي غير ذا خخخخخخخخخخخخخ function armour() if source == Ar then setPedArmor ( player, 100 ) Link to comment
Adham Posted June 9, 2016 Share 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 ) وضح طلبك التالت Link to comment
iMr.WiFi..! Posted June 9, 2016 Share 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 ) 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