Jump to content

N3xT

Retired Staff
  • Posts

    2,490
  • Joined

  • Days Won

    18

Everything posted by N3xT

  1. N3xT

    تعديل

    طيب ما ظبط وش طالع لك بالديبق debugscript 3
  2. عدل عالاحداثيات ونزلها ، والموضوع أبد ماله شغل بعدد اللاعبين
  3. بالطبع مافيه خطأ ولا شبه خطأ بعد ، هل تشوف فيه كلمة محرمة بكلامي ولا سبيت ولا شتمت ولا لعنت ؟ بعدين كلامي كان موجه للي أقتبسته
  4. N3xT

    تعديل

    Client addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then local message = guiGetText ( GUIEditor.edit[1] ) local name = getPlayerName ( localPlayer ) if ( message and message ~= "" ) then guiSetEnabled( GUIEditor.button[1], false ) setTimer( guiSetEnabled, 1000, 1, GUIEditor.button[1], true ) triggerServerEvent ( 'Support;Send', localPlayer, message, name ) end end end ) function GridList ( msg, name ) if ( msg and name ) then local aRow = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], aRow, 1,' '..name..' : '..msg, false, false ) end end addEvent ( 'Support;AddGridlist', true ) addEventHandler ( 'Support;AddGridList', root, GridList ) Server addEvent ( 'Support;Send', true ) addEventHandler ( 'Support;Send', root, function ( msg, name ) triggerClientEvent ( root, 'Support;AddGridList', root, msg, name ) end )
  5. الموضوع من 2016 وصاحب المشكلة ، طلب أن الموضوع يغلق وأنحلت المشكلة عنده
  6. أتمنى تقرا ردي زين وكامل ، قبل لا تقتبس كلامي أذا شفت أنا واحد غلطان وممكن يضحك على واحد ثاني تبيني أسكت ؟ ، لا طبعاً لازم أوضح له أنه غلط اللي يسويه وأنا ما قلت شيء غلط ، وكلامي صحيح لذلك الله لا يهينك ، قل خيراً أو أصمت
  7. وعليكم السلام ورحمة الله وبركاته فكرة الإختصارات حلوة ، لكن لغتك العربية يبي لها تصحيح أغلبها أخطاء ، وما يصير تسوي سكربت وأنت مب متأكد من اللي كاتبه بالتوفيق
  8. يا ليت تراجع وضعك لأن منتدياتك كلها أخطاء / لا هيدر مثل الاوادم وحقوق ترايدنت عليه وتعدل على الصور بالرسام من ضحك عليك وقالك انك مبرمج ؟
  9. وش هي اللي تقدر
  10. فوق أشوف فتاوي كثييييييييير يلا من كمان عنده فتوى جديدة
  11. N3xT

    #[طلب]#

    يا وجه الله وش التخبيص ذا
  12. local dataName = "" -- إسم الداتا حق النقاط addEventHandler ( "onResourceStart", resourceRoot, function () executeSQLQuery ('CREATE TABLE IF NOT EXISTS `TABLE` ( serial,point ) ') end ) addEventHandler("onPlayerQuit ", root, function () local playerSerail = getPlayerSerial( source ) local Save = executeSQLQuery ('SELECT * FROM `TABLE` WHERE serial=?',playerSerail ) local data = getElementData (source, dataName) if ( data and data ~= "" ) then if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then executeSQLQuery ('INSERT INTO `TABLE` (serial,point) VALUES (?,?)', playerSerail, data) else executeSQLQuery ('UPDATE `TABLE` SET serial = ? , point = ?', playerSerail , data) end end end ) addEventHandler ("onPlayerJoin", root, function () local playerSerail = getPlayerSerial(source) local Save = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE serial=?',playerSerail ) if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then return end local saveData = Save[1]['point'] setElementData(source,dataName,saveData) end )
  13. كفوك ، ذا واجبنا
  14. Client function dxPanel() dxDrawRectangle(824, 393, 107, 40, tocolor(0, 0, 0, 90), false) dxDrawText("Safe Zone", 844, 402, 910, 423, tocolor(0, 255, 0, 255), 1.00, "sans", "left", "top", false, false, false, false, false) end addEvent("photo", true) addEventHandler("photo",root, function ( st ) if st == "draw" then addEventHandler("onClientRender",root,dxPanel) elseif st == "undraw" then removeEventHandler("onClientRender",root,dxPanel) end end ) Server c = createColCuboid (2916.02490,-2101.63184,1,370,230,255) s = createRadarArea (2916.02490,-2101.63184,370,230,0,255,0, 100) setElementData (s,"zombieProof",true) addEventHandler ("onColShapeHit",c, function ( s ) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then toggleControl (s,"fire",false) outputChatBox("انت الان داخل الحماية من الزومبي", s, 0, 255, 0) triggerClientEvent (s,"photo",s,"draw") end end ) addEventHandler ("onColShapeLeave",c, function (s) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then toggleControl(s,"fire",true) triggerClientEvent (s,"photo",s,"undraw") outputChatBox("انت الان خارج الحماية يمكنك قتل الزومبي", s, 255, 0, 0) end end )
  15. جرب ذا local dataName = "" -- إسم الداتا حق النقاط addEventHandler ( "onResourceStart", resourceRoot, function () executeSQLQuery ('CREATE TABLE IF NOT EXISTS `TABLE` ( serial,point ) ') end ) addEventHandler("onPlayerQuit ", root, function () local playerSerail = getPlayerSerial( source ) local Save = executeSQLQuery ('SELECT * FROM `TABLE` WHERE serial=?',playerSerail ) local data = getElementData (source, dataName) if ( data and data ~= "" ) then if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then executeSQLQuery ('INSERT INTO `TABLE` (serial,point) VALUES (?,?)' playerSerail, data) else executeSQLQuery ('UPDATE `TABLE` SET serial = ? , point = ?' playerSerail , data) end end end ) addEventHandler ("onPlayerJoin", root, function () local playerSerail = getPlayerSerial(source) local Save = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE serial=?',playerSerail ) if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then return end local saveData = Save[1]['point'] setElementData(source,dataName,saveData) end )
  16. الله يعافيك وحياك الله
  17. الصراحة اللي فوق أشوفه حويس
  18. ليه تستخدم الداتا إذا بتحفظ عن طريق قواعد البيانات
  19. guiSetText(Label,math.floor(abu)) math.floor ( فائدته يشيل لك الفواصل ، ويقربه لأقرب رقم بدون فواصل )
  20. ما فهمت وش قصدك ، لكن إذا قصدك يعني يظهر لك بالشاشة الأشياء البعيدة هذي أتوقع مالها فنكشن من إعدادات اللعبة نفسها
  21. Client sett = guiCreateButton(507, 278, 64, 37, "Set The Money", true) money = guiCreateEdit(448, 225, 166, 45, "", true) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == sett ) then local amount = guiGetText ( money ) if ( amount ~= "" ) then setElementData(resourceRoot, "markerMoney", tonumber(amount)) outputChatBox("Marker money : "..getElementData(resourceRoot,"markerMoney")..""),255,255,255,true) end end end ) Server addEventHandler ( "onMarkerHit", root, function ( element ) if ( source == myMarker1 ) and ( getElementType ( element ) == "player" ) then setMarkerSize( source, 0 ) givePlayerMoney(element, getElementData(resourceRoot,"markerMoney")) sendClientMessage ( '- ' .. getPlayerName(element) .. ' money', root, 255, 23, 23, top, 15 ) outputChatBox(" ", root, 183, 92, 38) end end )
×
×
  • Create New...