-
Posts
2,490 -
Joined
-
Days Won
18
Everything posted by N3xT
-
وعليكم السلام ورحمة الله وبركاته Vehicles = {} VehicleM = createMarker ( 1834,874,11, "cylinder", 3, 255, 0, 0, 255 ) ColorM = createMarker ( 1835,894,11, "cylinder", 3, 0, 255, 0, 255 ) addEventHandler( "onMarkerHit", root, function ( hitElement ) if source == VehicleM and getElementType( hitElement ) == "player" then if Vehicles[hitElement] and getElementType( Vehicles[hitElement] ) == "vehicle" then destroyElement( Vehicles[hitElement] ) end local x,y,z = getElementPosition( hitElement ) Vehicles[hitElement] = createVehicle ( 507, x, y, z ) if Vehicles[hitElement] then warpPedIntoVehicle( hitElement, Vehicles[hitElement] ) outputChatBox( "تم أعطائك سيارتك بنجاح :)", hitElement, 255, 0, 0, true ) setTimer( function() if isElement( Vehicles[hitElement] ) then destroyElement( Vehicles[hitElement] ) end end, 300000, 0) end elseif source == ColorM and getElementType( hitElement) == "player" and isPedInVehicle( hitElement ) then local player = getPedOccupiedVehicle( hitElement ) setVehicleColor( player, math.random(255), math.random(255), math.random(255) ) outputChatBox( "تم تلوين سيارتك بنجاح :)", hitElement, 0, 255, 0, true ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if Vehicles[source] then destroyElement( Vehicles[source] ) end end )
-
نفس الفنكشنات اللي فوق ، حاول تسويها بنفسك مب كل شيء علينا
-
طيب شوف الديبوق لأن الكود ما جربته وأتمنى توضح الأخطاء كلها بالتفصيل + انت تبي الطلبات كلها تظهر ولا اللي انت مسويها فقط
-
جرب التالي : فكود فتح اللوحة حط ذا الكود triggerServerEvent("load:Columns",localPlayer,localPlayer) كلينت addEventHandler ( "onClientGUIClick", root, function ( btn ) if source == GUIEditor.checkbox[1] then guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) ) elseif source == GUIEditor.checkbox[2] then guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) ) end if btn == "left" then if ( source == GUIEditor.button[1] ) then local item = guiComboBoxGetSelected ( com ) local card = guiComboBoxGetItemText(com, item) local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] ) if name == "" or number == "" or card == "" then return end if guiCheckBoxGetSelected ( GUIEditor.checkbox[1] ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, localPlayer, name, email, number, card, "classic" ) elseif guiCheckBoxGetSelected ( GUIEditor.checkbox[2] ) then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, localPlayer, name, email, number, card, "special" ) end guiSetEnabled ( GUIEditor.button[1], false ) end end end ) addEvent ( "RentSystem:onSendSubscribePlayers", true ) addEventHandler ( "RentSystem:onSendSubscribePlayers", root, function ( tables ) for i, v in ipairs( tables ) do local row = guiGridListAddRow ( GUIEditor.gridlist[4] ) guiGridListSetItemText( GUIEditor.gridlist[4], row, 2,tables[i].name, false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 1, tables[i].serial , false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 3, tables[i].card, false, false) end end ) سيرفر addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS `Rent_system` (serial,name,email,number,card,plan)") end ) addEvent ( "load:Columns", true ) addEventHandler ( "load:Columns", root, function ( player ) local result = executeSQLQuery ( "SELECT * FROM `Rent_System` WHERE `serial` = ?", getPlayerSerial (player) ) if ( result and #result == 0 ) then return end triggerClientEvent ( player, "RentSystem:onSendSubscribePlayers", player, result ) end ) addEvent("RentSystem:onCreateNewOrder",true) addEventHandler("RentSystem:onCreateNewOrder",root, function ( player, name, email, number, card, plan ) local result = executeSQLQuery ( "SELECT * FROM `Rent_system` WHERE `serial` = ?", getPlayerSerial (player) ) if ( result and #result == 0 ) then executeSQLQuery( 'INSERT INTO `Rent_system` (serial,name,email,number,card,plan) VALUES(?,?,?,?,?,?) ', getPlayerSerial(player), getPlayerName(player), email, number, card, plan ) else outputChatBox("لديك طلب حالياً",player,255,255,255,true) end end )
-
كودك خطأ, مدري كيف أشتغل أصلاً وناقصك تحققات Client addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("start:sound",localPlayer) end end ) addEvent("enable:sound",true) addEventHandler("enable:sound",root, function() if isElement(sound) then return end local sound = playSound("sound.mp3") end ) Server addEvent("start:sound",true) addEventHandler("start:sound",root, function() triggerClientEvent(root,"enable:sound",root) end )
-
!! النت كله مودات انتقال اكتب مود الانتقال mta ويجيك كثير
-
ما أتوقع أحد بيسوي لك سكربت كامل مجاناً ، عالأقل حاول ولا دور بالنت
-
طيب عطني الكود كامل عشان أساعدك زين ، وين كود زر الشراء؟ الحين فهمت اللي تبي تسويه ، تفضل Client healthPoint = 0 addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[2] ) then if ( healthPoint <= 10 ) then triggerServerEvent ( "buy:Health", localPlayer, localPlayer ) guiAntiFlood(GUIEditor.button[2],900) healthPoint = healthPoint + 1 end end end ) bindKey("h","down", function ( ) if ( healthPoint >= 1 ) then setElementHealth(localPlayer,100) healthPoint = healthPoint - 1 guiSetText(GUIEditor.label[5],healthPoint) else outputChatBox('# You dont have a health point.',255,255,255,true) end end ) Server addEvent("buy:Health",true) addEventHandler("buy:Health", root, function ( aPlayer ) if ( getPlayerMoney(aPlayer) >= 10000 ) then takePlayerMoney(aPlayer, 10000) outputChatBox('# You bought a health point succesfully.',255,255,255,true) else outputChatBox('# You dont have enough money.',255,255,255,true) end end )
-
عدلت على خواص الآسل ولا شيء من ذا القبيل؟
-
طيب فيه مثل الفنكشن اللي فوق http://www.lua.org/manual/5.1/manual.html#pdf-table.remove
-
نورتم جميعاً. @SolideRock : م أفتحه كثير
-
Client addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == aButtonEdit ) then local newName = guiGetText ( EditNewName ) if string.len(newName) > 0 then triggerServerEvent("server:teamManager",localPlayer,newName) end end end ) addEvent ( "client;editPlayer", true ) addEventHandler ( "client;editplayer", root, function ( newName ) if newName then local aRow = guiGridListAddRow ( aTeam.GridList ) guiGridListSetItemText ( aTeam.GridList, aRow ,1, newName, false, false ) end end ) Server addEvent( "server:teamManager", true ) addEventHandler ( "server:teamManager", root, function ( newName ) if newName then triggerClientEvent (root, "client;editPlayer", root, newName ) end end )
-
السلام عليكم ورحمة الله وبركاته حبيت أقدم لكم أول ماب لي ، أتمنى يعجبكم الماب قديم له تقريباً 4 شهور
-
function PointG_2() if getElementData(localPlayer,"LoginTopP") then for i, valueT in ipairs(PointGang) do dxDrawFramedText ( "Best Gang :",(sX/600)*20, (sY/600)*245, (sX/800)*30, (sY/600)*80, tocolor(255, 10, 0, 255),1.0, "default-bold", "left", "top", false, false, true, false, false) PlayerBestG = valueT[1] end end end
-
لا مب ممكن ما تعرف تشغل الاديتور وتكتب النص؟
-
local team = getTeamFromName ( name ) وشلون النيم معرفه ^ ؟ ، ركز الله لا يهينك
-
قوانين المنتدى ماهي لعبة ، التزم بها ماحد يكلمك ترفع بالمواضيع القديمة وتقول مالك دخل @!#NssoR_)
-
hoursRequired قيمة فارغة ، لذلك هل أنت متأكد أنه فيه قيمة ( ورقم ) ؟
-
كذا إن شاء الله ما راح يكون فيه لا تقدم ولا زيادة function aTimerSecondsToMethod ( aMethod,aCount ) assert ( type ( aMethod ) == 'string','[1]Argument method is wrong please make sure it is there and its a string with days or wtf.' ) assert ( type ( aCount ) == 'number','[2]Argument method is wrong please make sure it is there and its a number' ) if aMethod == 'Days' then aCountMS = 86400000; elseif aMethod == 'Weeks' then aCountMS = 604800016,6; elseif aMethod == 'Months' then aCountMS = 2629800000; elseif aMethod == 'Years' then aCountMS = 31557600000; end return aCount*aCountMS; end;