Jump to content

кιηg-αвα∂у

Members
  • Posts

    396
  • Joined

  • Last visited

Everything posted by кιηg-αвα∂у

  1. دخان أسود ؟ ما عمري شفت بالجراند كلها دخان أسود .. ممكن إنكـ مركب جرافيكـ وتشوف شي معين على شكل دخان أسود يا ليت توضح زين .. قصده لما تخترب السيارة يطلع دخان اسود هو يبي اذا طلع الدخان تطفي السيارة
  2. addEventHandler('onClientRender', root, function() for i,v in ipairs ( getElementsByType( 'vehicle' ) ) do vh = getElementHealth( v ) if vh <= 40 and vh ~= 0 then setVehicleEngineState( v, false ) end end end )
  3. بس هو بيستخدم هذه الحدث 'onClientRender' يعني يكون كذا vH = getElementHealth( getPedOccupiedVehicle ( getLocalPlayer() ) ) + لآزم يحط تحقق اذا كان الاعب في سيارة isPedInVehicle
  4. attacker -- الأعب الي طلق source -- الاعب الي انصاب weapon -- السلاح المستخدم if attacker and attacker ~= source and weapon == 24 then -- اذ كان السلاح ديجل والي ضرب ماصاب نفسه والي ضرب لاعب
  5. attacker -- الأعب الي طلق source -- الاعب الي انصاب weapon -- السلاح المستخدم addEventHandler ( "onPlayerDamage", getRootElement (), -- لما ينضرب لاعب function( attacker, weapon ) -- وضيفة if attacker and attacker ~= source and weapon == 24 then -- اذ كان السلاح ديجل والي ضرب ماصاب نفسه والي ضرب لاعب setPedFrozen( source, true ) -- تجمد الي انصاب function unF( source ) -- وضيفة لفك التجميد setPedFrozen( source, false ) -- ازالة التجميد عن الي انضرب end -- نهاية setTimer( unF, 9000, 1, source ) -- الوضيفة والوقت والتكرار وتعريف الاعب الي انصاب end -- نهاية end -- نهاية ) -- اغلاق قوس الحدث
  6. جرب سيرفر addEventHandler ( "onPlayerDamage", getRootElement (), function( attacker, weapon ) if attacker and attacker ~= source and weapon == 24 then setPedFrozen( source, true ) function unF( source ) setPedFrozen( source, false ) end setTimer( unF, 9000, 1, source ) end end )
  7. جاك الكود جاهز بدون ماتسوي شي وتبي نرفعه لك على رابط ؟؟ http://arabsh.com/files/0d31414867f7/chat-zip.html
  8. اما كيف عرفت الخطأ ههههههههههه local memo = GUIEditor.memo[1] local button = GUIEditor.button[1] local edit = GUIEditor.edit[1]
  9. debugscript 3 debugscript 3 debugscript 3 debugscript 3
  10. بو شنب ناسخ كودي وتقول تصحيح
  11. انا متعود استخدم طريقة الجدول وماتوقع في فرق ؟
  12. جرب addCommandHandler('aze', function( playerSource ) if isTimer( sendAll ) then killTimer( sendAll ) outputChatBox('تم ايقاف التوزيع التلقائي', playerSource, 255, 255, 0, false) return end sendAll = setTimer( function() for i,v in ipairs ( getElementsByType( 'plyaer' ) ) do givePlayerMoney( v, 2500 ) outputChatBox("* The #1De[4]gle, Has Been Sent 2500 $ To All Players !", root, 0, 255, 0, false) end end,600000,0,v ) addCommandHandler('giveM', function( playerSource ) if isTimer( sendAll ) then outputChatBox('يجب ايقاف التوزيع التلقائي', playerSource, 255, 255, 0, false) return end for i,v in ipairs ( getElementsByType( 'plyaer' ) ) do givePlayerMoney( v, 2500 ) end end ) تشغل التوزيع التلقائي واذا كتبتها مره ثانية تطفيه aze
  13. برستيج سواها بجدول يعني كل لاعب له تايمر واحد
  14. في هذه الحدث المصدر هو السيارة اقرأ الويكي حتى لو بترجمة قوقل وبتفهم https://wiki.multitheftauto.com/wiki/OnVehicleEnter The source of this event is the vehicle that was entered. بس في حدث تسجيل الخروج https://wiki.multitheftauto.com/wiki/OnPlayerLogout The source of this event is the player that logged out. يعني المصدر في هذه الحدث الاعب الي سجل خروج
  15. لو مسويها بالجداول مثل صفحة 2 اسهل
  16. خطأ getPlayerName كنت كاتب عدلت ردي جرب + لاتنسى تحط الأسماء
  17. -- # Server Side ! PrestegeTimer = { } canGiveM = true addEventHandler("onPlayerCommand",getRootElement(), function ( cmd ) if ( cmd == "giveM" ) then if canGiveM == false then outputChatBox('aze is started', source, 255, 0, 0, false) return end for _,v in next,getElementsByType("player") do givePlayerMoney ( v,2500 ) outputChatBox("* The #1De[4]gle, Has Been Sent 2500 $ To All Players !",v) end elseif ( cmd == "aze" ) then if isTimer ( PrestegeTimer[source] ) then killTimer ( PrestegeTimer[source] ) canGiveM = true return end canGiveM = false PrestegeTimer[source] = setTimer ( function ( source ) for _,v in next,getElementsByType ( "player" ) do givePlayerMoney ( v,2500 ) outputChatBox("* The Server Has Been Sent 2500 $ To All Players !",v) end end,600000,0,v ) end end )
  18. جرب غير name client side local memo = name -- اسم صندوق الرسائل local button = name -- اسم الزر local edit = name -- اسم مربع الكتابة addEventHandler("onClientGUIClick", root, function() if ( source == button ) then local msg = guiGetText( edit ) if msg ~= "" and msg ~= " " then triggerServerEvent("sendMsgToRoot", localPlayer, msg ) end end end ) addEvent("addMsg", true) addEventHandler("addMsg", root, function( msg ) guiSetText( memo, "\n" .. getPlayerName( localPlayer ) .. " : " .. msg .. "" ) end ) server side addEvent("sendMsgToRoot", true) addEventHandler("sendMsgToRoot", root, function( msg ) triggerClientEvent(root,"addMsg",root,msg) end )
  19. guiCreateWindow guiCreateMemo guiCreateEdit guiGetText guiSetText "onClientGUIClick"
  20. PrestegeTimer = { } local canGiveM = nil addEventHandler("onPlayerCommand",getRootElement(), function ( cmd ) if ( cmd == "giveM" ) then if canGiveM then for _,v in next,getElementsByType("player") do givePlayerMoney ( v,2500 ) outputChatBox("* The #1De[4]gle, Has Been Sent 2500 $ To All Players !",v) end end elseif ( cmd == "azeStop" ) then if ( isTimer ( PrestegeTimer[source] ) ) then killTimer ( PrestegeTimer[source] ) PrestegeTimer[player] = nil canGiveM = true else outputChatBox("aze is stoped", source, 255, 0, 0, false) end elseif ( cmd == "aze" ) then if ( isTimer ( PrestegeTimer[source] ) ) then killTimer ( PrestegeTimer[source] ) PrestegeTimer[player] = nil canGiveM = true end PrestegeTimer[source] = setTimer ( function ( ) for _,v in next,getElementsByType ( "player" ) do givePlayerMoney ( v,2500 ) canGiveM = false outputChatBox("* The Server Has Been Sent 2500 $ To All Players !",v) end end,600000,0 ) end end ) azeStop لآيقاف التوزيع التلقائي اكتب
  21. ماتفرق ركز على الكلام الأحمر
  22. قصدي اذا سوا مسافه يقوله مايصير تسوي مسافه او بـ معني انك مايصير تخليه فاضي هذه اكيد شغال addEventHandler("onClientGUIClick",guiRoot, function() if source == GUIEditor_Button[1] then if guiGetText(GUIEditor_Edit[1]) ~= "" and guiGetText(GUIEditor_Edit[1]) ~= " " and guiGetText(GUIEditor_Edit[2]) ~= "" and guiGetText(GUIEditor_Edit[2]) ~= " " then RandomName = guiGetText(GUIEditor_Edit[1]) hobo = guiGetText(GUIEditor_Edit[2]) if RandomName and hobo then triggerServerEvent("wp",localPlayer,RandomName,hobo) end end end end) ماتصير الوضيفة الى اذا كتب فيهم اثنينهم
×
×
  • Create New...