-
Posts
2,490 -
Joined
-
Days Won
18
Everything posted by 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 )
-
Posted December 16, 2016
-
الموضوع من 2016 وصاحب المشكلة ، طلب أن الموضوع يغلق وأنحلت المشكلة عنده
-
أتمنى تقرا ردي زين وكامل ، قبل لا تقتبس كلامي أذا شفت أنا واحد غلطان وممكن يضحك على واحد ثاني تبيني أسكت ؟ ، لا طبعاً لازم أوضح له أنه غلط اللي يسويه وأنا ما قلت شيء غلط ، وكلامي صحيح لذلك الله لا يهينك ، قل خيراً أو أصمت
-
وعليكم السلام ورحمة الله وبركاته فكرة الإختصارات حلوة ، لكن لغتك العربية يبي لها تصحيح أغلبها أخطاء ، وما يصير تسوي سكربت وأنت مب متأكد من اللي كاتبه بالتوفيق
-
يا ليت تراجع وضعك لأن منتدياتك كلها أخطاء / لا هيدر مثل الاوادم وحقوق ترايدنت عليه وتعدل على الصور بالرسام من ضحك عليك وقالك انك مبرمج ؟
-
فوق أشوف فتاوي كثييييييييير يلا من كمان عنده فتوى جديدة
-
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 )
-
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 )
-
جرب ذا 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 )
-
ليه تستخدم الداتا إذا بتحفظ عن طريق قواعد البيانات
-
guiSetText(Label,math.floor(abu)) math.floor ( فائدته يشيل لك الفواصل ، ويقربه لأقرب رقم بدون فواصل )
-
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 )