Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. منيب مرتاح من كودك addEventHandler ( "onVehicleStartExit", root, function ( plr ) if Vehicle[plr] and Vehicle[plr]['myVehicle'] and isElement ( Vehicle[plr]['myVehicle'] ) then cancelEvent( true ) end end ) اظن لو تحققت الشروط السابقة - جداول اللاعب موجودة - السيارة موجودة مراح تنزل من أي سيارة ثآنية ابد
  2. لم يتم التجربة -- Client Side addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if ( getPlayerMoney ( ) >= 2350 ) then triggerServerEvent ( "nothing", localPlayer, localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end elseif source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) elseif source == GUIEditor.button[2] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) if not guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[2], true ) showCursor ( true ) end elseif source == GUIEditor.button[4] then guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) end end ) -- Server Side Vehicle = { } addEvent ( "nothing", true ) addEventHandler ( "nothing", root, function ( player ) if not Vehicle[player] then Vehicle[player] = {} end if isElement ( Vehicle[player]['myBilp'] ) then destroyElement(Vehicle[player]['myBilp']) elseif isElement ( Vehicle[player]['myVehicle'] ) then destroyElement(Vehicle[player]['myVehicle']) end Vehicle[player]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) warpPedIntoVehicle(player,Vehicle[player]['myVehicle']) Vehicle[player]['myBilp'] = createBlipAttachedTo ( Vehicle[player]['myVehicle'], 9 ) setElementModel ( player, 45 ) takePlayerMoney ( player, 2350 ) end )
  3. اي قروب المهم انه يقدر يصك ميوت وباند
  4. Spam Posts, Deleted. ردود مالها فايدة .. بعد ردي هذآ إحتمآل تنحظر العضوية #
  5. addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if getPlayerMoney ( localPlayer ) >= 2350 then triggerServerEvent ( "nothing", localPlayer, localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end end end ) وليه مسوي ترايقرين ؟؟ اجمع الوظيفتين بترايقر واحد -- ^ الغلط هو اني نسيت احطه بالأرقومنت triggerServerEvent ( "nothing", localPlayer, localPlayer )
  6. -- Client Side addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if getPlayerMoney ( ) >= 2350 then triggerServerEvent ( "nothing", localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else return outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end end end ) -- Server Side addEvent ( "nothing", true ) addEventHandler ( "nothing", root, function ( player ) takePlayerMoney ( player, 2350 ) end )
  7. for _,player in ipairs(getElementsByType("player")) do outputChatBox("CustomChat : " .. tostring(PlayerName) .. ": " .. tostring(message), player,r,g,b) end outputChatBox ( "CustomChat : " ..PlayerName.. ": " ..message, root, r, g, b )
  8. ماله داعي تجيبهم من الجدول getRootElement ( ) -- كآفي
  9. fadeCamera -- الشاششة سوداء guiCreateLabel -- ليبل كتابي setTimer -- مؤقت guiSetText -- تغيير النص guiCreateButton -- زر
  10. رآجع القوانين إذا بتطرح موضوع مرة ثانية
  11. createMarker "onMarkerHit" isObjectInACLGroup setElementPosition + لاحظت علاك لو تبي تسأل بـ نفس الأكواد تفك موضوع جديد بدال ماتحط رد على نفس الموضوع ! Quick Reply إذا ماتعرف شف تحت كلمة
  12. كمل بـ موضوعك القديم لآ تفك أكثر من موضوع بـ نفس الطلب
  13. مآلك حاجة بالتريقر .. استخدم "onMarkerHit" -- Server Side getElementType -- شرط إثبات ان اللي لآمس الماركر لاعب isPedInVehicle -- شرط وجود الشخصية داخل السيارة
  14. addEventHandler ( "onPlayerWasted", root, function ( ) if getPlayerMoney ( source ) >= 500 then takePlayerMoney ( source, 500 ) end end )
  15. مآلكـ حاجة تحط else لأنه لو ماتحقق الشرط ماراح ينفذ الوظيفة اصلاً
  16. إي صحيح لو تحقق الشرط وكان اللاعب عنده أكثر من 500 رآح يسحب منه 500 ولو ماتحقق مآراح يصير اي شيء
  17. كودك صحيح وبالنسبة لـ سؤالك ترآه واضح من اسمه onClientPlayerWasted + انصحك تسوي شروط لأن لو كآنت فلوس اللاعب مصفرة رآح يسحب منه وتصير بالسسآلب يعني إستخدم getPlayerMoney
  18. تخيل اللاعب لمس الماركر وفصل النت عنده او خرج من السيرفر رآح يقلكـ Bad Argument @ getElementPosition
  19. درينا انك خبره خلاص .. شآيفني جآلس افهمه اغلاطه وابيه هو يصححها بـ نفسه وشهو له تجي وتحطه جاهز ؟
  20. Source : The source of this event is the player that died or got killed. يعني ان العنصر هنا هو اللاعب الميت
×
×
  • Create New...