-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
بالتوفيق يابطل مود جميل
-
ماشاءالله مود جمييل وننتظر جديدك يالذيب والي الامام #
-
: طريقة إستخدامك خطأ للكود المفروض كذا if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then ومثل ماقالك الاخ جراند ماراح يفرق حطيت == true او ماحطيتها
-
[شرح] SQL-Structured Query Language | أوامر لغة الأس كيو ال
!#NssoR_) replied to Mr.CoR's topic in دروس في البرمجة
يعطيك العافية ع الشرح الاكثر من راائع وهاذي الشروحات الي تستاهل 10\10 واصلل يالذيب -
سطر 8 عشان تجي رساله للي تم إرسال الفلوس له وسطر 9 عشان تجي رساله لك وتقولك انك رسلت فلوس للاعب اما سطر 11 اذا ماعندك فلوس بيقولك ماعندك يعني ماله داعي يحذف ولا واحد منهم و المشكلة مومنهم لازم نشووف اكواد الكلنت
-
هالفكرة موجوده بسيرفر وناسة تايم ومن برمجتي
-
guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."] " .. Name:gsub("#%x%x%x%x%x%x", "") .. " : " .. Text , false, false)
-
الصراحة فكرة حلوه ان الصور تنحفظ واهنيك يالذيب To Front.
-
MyBlip = createBlip ( 211.51495, 1812.03601, 20.85941, 32) Marker = createMarker ( 211.51495, 1812.03601, 20.85941, "cylinder",1,255,255,0, 50 ) -- احداثيات الماركر GUIEditor = { button = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 432) / 2, (screenH - 256) / 2, 432, 256, "نظام الانذار سيرفر ( لم يحدد )", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FEC1E4F6") guiSetVisible(GUIEditor.window[1],false) MyLabel = guiCreateLabel(224, 28, 204, 163, "لوحة الانذار الخاصة بسوات مصر\n\nفي حالة يوجد هجوم على المقر \n\nمن فضلك قم بالضغط على زر warning\n\nفي حالة لا يوجد هجوم اضغط على X\n\nاستمتع بوقت ودافع عن الشعب\n\n[ SWAT.EGYPT ]\nستحصل على مال اذا ساعدت الجيش", false, GUIEditor.window[1]) guiSetFont(MyLabel, "default-bold-small") guiLabelSetColor(MyLabel, 193, 228, 246) guiLabelSetHorizontalAlign(MyLabel, "center", false) guiLabelSetVerticalAlign(MyLabel, "center") GUIEditor.button[1] = guiCreateButton(10, 210, 188, 36, "[ play alarm ]", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEC1E4F6") GUIEditor.button[2] = guiCreateButton(234, 210, 188, 36, "[ X ]", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FEC1E4F6") GUIEditor.label[1] = guiCreateLabel(14, 21, 180, 180, "", false, GUIEditor.window[1]) IMG = guiCreateStaticImage(14, 21, 180, 180, "alarm/alarm.png", false, GUIEditor.window[1]) addEventHandler("onClientMarkerHit",Marker, function (player) if player ~= localPlayer then return end guiSetVisible ( GUIEditor.window[1] , true ) showCursor ( true ) end) addEventHandler("onClientGUIClick",root, function () if source == (GUIEditor.button[1]) then guiSetEnabled(GUIEditor.button[1],false) setTimer(function () guiSetEnabled(GUIEditor.button[1],true) end, 120000, 0) triggerServerEvent('StartWarn',localPlayer) elseif source == (GUIEditor.button[2]) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end end) addEvent('StartWarn2',true) addEventHandler('StartWarn2',root, function () if ( isElement(Sound) ) then destroyElement(Sound) end local x,y,z = getElementPosition(source) Sound = playSound3D( "warning.mp3",x,y,z ) setSoundMaxDistance( Sound, 1200 ) end) Server addEvent('StartWarn',true) addEventHandler('StartWarn',root, function () givePlayerMoney(client,100) triggerClientEvent(getRootElement(),'StartWarn2',client) end)
-
الفراغ الزايد ماراح يظر ابد
-
-
addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox(msg,root, 255, 0, 0) end )
-
addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local Sdit = guiGetText(edit) if Sdit ~= '' then triggerServerEvent("Out", localPlayer, Sdit) setTimer(function () guiSetText(edit, " ") end,600,1) end end end) addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox(getPlayerName(client)..": "..msg.." ",root, 255, 0, 0) end )
-
تنبيه : الكلام محد يشوفه الا الي ضغط علي الزر *
-
مايبيلها دي بق سطر 2 كيف تجيبون التيم نفسه وتحطونه بالتاج ؟؟
-
addEventHandler('onResourceStart',resourceRoot, function () dataBase = dbConnect( "sqlite", "money.db" ) dbExec ( dataBase, "CREATE TABLE IF NOT EXISTS players_money (account TEXT, money INTEGER)" ) end ) addEventHandler('onPlayerQuit', root, function( ) local money = getPlayerMoney(source) local account = getAccountName(getPlayerAccount(source)) local qh = dbQuery( dataBase, "SELECT * FROM players_money WHERE account=?", account) local result = dbPoll( qh, -1 ) if result and type(result) == "table" and #result >= 1 then return dbExec( dataBase, "UPDATE players_money SET money=? WHERE account=?", money, account) end dbExec( dataBase, "INSERT INTO players_money (account,money) VALUES(?,?)", account,money) end ) addEventHandler('onPlayerLogin', root, function( ) local account = getAccountName( getPlayerAccount(source) ) local qh = dbQuery( dataBase, "SELECT * FROM players_money WHERE account=?", account) local result = dbPoll( qh, -1 ) if result then for _, row in ipairs ( result ) do outputChatBox(tostring(row["money"])) setPlayerMoney(source,row["money"]) end end end )
-
addEventHandler('onResourceStart',resourceRoot, function () dataBase = dbConnect( "sqlite", "money.db" ) dbExec ( dataBase, "CREATE TABLE IF NOT EXISTS players_money (account TEXT, money INTEGER)" ) end ) addEventHandler('onPlayerQuit', root, function( ) local money = getPlayerMoney(source) local account = getAccountName(getPlayerAccount(source)) local qh = dbQuery( dataBase, "SELECT * FROM players_money WHERE account=?", account) local result = dbPoll( qh, -1 ) if result and type(result) == "table" and #result >= 1 then return dbExec( dataBase, "UPDATE players_money SET money=? WHERE account=?", money, account) end dbExec( dataBase, "INSERT INTO players_money (account,money) VALUES(?,?)", account,money) end ) addEventHandler('onPlayerLogin', root, function( ) local account = getAccountName( getPlayerAccount(source) ) local qh = dbQuery( dataBase, "SELECT * FROM players_money WHERE account=?", account) local result = dbPoll( qh, -1 ) if result then for _, row in ipairs ( result ) do outputChatBox(tostring(row["money"])) setPlayerMoney(source,row["money"]) end end end )
-
ماشاءلله شغل جميل واتمني لك التوفيق ونشوفك من كبار المبرمجين إن شاءالله
-
لا مايمديك .#
-
addEvent ("fkbot",true) addEventHandler ("fkbot",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 0,1,800) end end ) addEvent ("ekbot",true) addEventHandler ("ekbot",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 0,0,800) end end ) addEvent ("fshnta",true) addEventHandler ("fshnta",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 1,1,800) end end ) addEvent ("eshnta",true) addEventHandler ("eshnta",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 1,0,800) end end ) addEvent ("fbab1",true) addEventHandler ("fbab1",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 2,1,800) end end ) addEvent ("ebab1",true) addEventHandler ("ebab1",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 2,0,800) end end ) addEvent ("fbab2",true) addEventHandler ("fbab2",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 3,1,800) end end ) addEvent ("ebab2",true) addEventHandler ("ebab2",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 3,0,800) end end ) addEvent ("fbab3",true) addEventHandler ("fbab3",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 4,1,800) end end ) addEvent ("ebab3",true) addEventHandler ("ebab3",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 4,0,800) end end ) addEvent ("fbab4",true) addEventHandler ("fbab4",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 5,1,800) end end ) addEvent ("ebab4",true) addEventHandler ("ebab4",root, function () local veh = getPedOccupiedVehicle (source) if veh then setVehicleDoorOpenRatio ( veh, 5,0,800) end end )
-
كودك صحيح وشغال بس حبيت انبهك عن شئ الي هو في السطر الاول انت حاط getRootElement() هاذي في حال تم تشغيل اي سكربت بالسيرفر راح تصنع البيد وتعطيه سلاح فـ لازم تسوي كذا addEventHandler("onResourceStart",resourceRoot, function() ped = createPed(115,2485,-1667,13.34375) if ped then giveWeapon(ped,30,100,true) end end) وتمنياتي لك بالتوفيق ..