-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
هههههههه والله مشوار السكربت مره مشوار لازم كل ادت تضيف له فنكشنات تغيير حالة الكفر حسب الاختيار يبي له مخمه ههههههههههههههههه
-
Use These , setPlayerName getAccountName
-
نسخ مع لصق من الويكي https://wiki.multitheftauto.com/wiki/SetVehicleWheelStates حتى الديبق عجز عن التعليق هههههههههههههههههه الله يعطيك العافية يابعد راسي , تصدق جلست احاول فيه ساعه , ابرمج المود, وضبط فك معي الكفر الايسر من السيارة , بس باقي اضيف اوامر الاصلاح + guiGetText يسوي على حسب الرقم اللي يحطه الاعب , + جاب لي حالة الكفرات كلها ,
-
والله سويته على السريع , شوف يضبط واكتب في اف 8 debugscript 3 , وشغل السكربت وشوف وش يطلع لك من اخطاْء, GUIEditor = { button = {}, window = {}, edit = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(272, 110, 314, 387, "فـكَ الكفر", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.99) GUIEditor.label[1] = guiCreateLabel(194, 32, 106, 15, "[0] Normal | طبيعي", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 151, 233, 21) GUIEditor.label[2] = guiCreateLabel(198, 57, 106, 15, "[1] Flat | مـنسسم", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 30, 75, 223) GUIEditor.label[3] = guiCreateLabel(15, 32, 133, 19, "[2] Fallen Off | مـفكوك", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 168, 6, 6) GUIEditor.label[4] = guiCreateLabel(15, 57, 158, 19, "[3] Collisionless | نـآزل", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 158, 96, 15) GUIEditor.label[5] = guiCreateLabel(222, 121, 68, 34, "Front Right \n قدام يمين ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 41, 131, 128) GUIEditor.edit[1] = guiCreateEdit(219, 161, 81, 25, "", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(20, 121, 68, 34, "Front Left\n قدام يسار ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 65, 42, 129) GUIEditor.edit[2] = guiCreateEdit(15, 161, 81, 25, "", false, GUIEditor.window[1]) GUIEditor.label[7] = guiCreateLabel(21, 217, 75, 30, "Rear Left\nورا يسار ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[7], 9, 161, 106) GUIEditor.label[8] = guiCreateLabel(229, 217, 75, 30, "Rear Right\nورا يمين ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[8], 74, 135, 34) GUIEditor.edit[3] = guiCreateEdit(15, 257, 81, 23, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(219, 254, 84, 26, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(98, 332, 121, 39, "فك الكفر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[9] = guiCreateLabel(11, 302, 116, 20, "Created By : mnGr7", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[9], 151, 233, 21) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F7", "down", OpenWin) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == (GUIEditor.button[1]) then function scriptWheelStates (newFLeft, newRLeft, newFRight, newRRight) local states = { [0]="inflated", [1]="flat", [2]="fallen off" } local frontLeft, rearLeft, frontRight, rearRight = getVehicleWheelStates ( theVehicle ) outputChatBox ( "Your vehicle's wheel states:", localPlayer ) outputChatBox ( "Front-Left: " .. states [ frontLeft ] .. ", Front-Right: " .. states [ frontRight ] .. ", Rear-Left: " .. states [ rearLeft ] .. ", Rear-Right: " .. states [ rearRight ], localPlayer ) end else outputChatBox ( "You have to be in a vehicle to use this command.", thePlayer ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if ( theVehicle ) then if ( newFLeft ) then if not setVehicleWheelStates ( theVehicle, newFLeft, newRLeft, newFRight, newRRight ) then outputChatBox ( "Bad arguments." ) end end outputChatBox("تـم فك الـكفر") end end end )
-
local cmd = "give" --- الامر اللي تكتبه local msg = "Here is $200 Have , fun" addCommandHandler(cmd, function(player, cmd) givePlayerMoney(player, 200) outputChatBox(msg, player, 255, 255, 0, false) end )
-
addEventHandler ( 'onPlayerLogin', getRootElement ( ), function () if (getPlayerAccount(getAccountName(source) == 'Name Here' )) then banPlayer ( source, false, false, true, getRootElement ( ), 'reason ban' ) end end ) learn from it ,
-
You Got That , Right it's Really Take Time , has a lot of functions and triggers , .. etc My advisde you should , Go Learn From mta wiki ,
-
it's Server Side , i Edited my Post ,
-
Make lua file name it server.lua and then put the codes into the file , and meta , and give your self a weapon then kill your self and you will get the same weapon with the same ammo on the next spawn .
-
function testejam(thePlayer, command) if ( getElementData( thePlayer, "allowrace" ) == 1 ) then if ( getElementData ( thePlayer, "dbid" ) == 2 ) then setElementData(thePlayer, "laiks", getTickCount ()) end local ciga = getElementData ( thePlayer, "dbid" ) outputChatBox("Tavs ID:"..tonumber(ciga)..".", thePlayer, 255, 255, 0) destroyElement(markeritis) markeritis = createMarker ( blueBerryRally[ciga][1], blueBerryRally[ciga][2], blueBerryRally[ciga][3], "checkpoint", 6, 190, 156, 252, 170 ) setElementVisibleTo(markeritis, root, false) setElementVisibleTo(markeritis, thePlayer, true) if ( #blueBerryRally == ciga ) then outputChatBox("Finished", thePlayer, 255, 255, 0) outputChatBox("Finisha time:"..(getTickCount () - getElementData( thePlayer, "laiks" )) / 1000 .."sec. GL NEXT TIME", root, 255, 255, 0) setElementData(thePlayer, "dbid", 1) end setElementData ( thePlayer, "dbid", getElementData ( thePlayer, "dbid" ) + 1 ) if isElementVisibleTo(markeritis,source) then addEventHandler( "onMarkerHit", markeritis, testejam ) end end end addCommandHandler("race", testejam) Use Mta Script Editor to see the Error of the Script ,
-
You Can Use This , --By Solidsnake14 local playerWeapons = { } addEventHandler ( "onPlayerWasted", root, function ( ) if ( not playerWeapons [ source ] ) then playerWeapons [ source ] = { } end for slot = 0, 12 do local weapon = getPedWeapon ( source, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( source, slot ) if ( ammo > 0 ) then playerWeapons [ source ] [ weapon ] = ammo end end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) if ( playerWeapons [ source ] ) then for weapon, ammo in pairs ( playerWeapons [ source ] ) do giveWeapon ( source, tonumber ( weapon ), tonumber ( ammo ) ) end end playerWeapons [ source ] = nil end )
-
local acc = getAccountName (getPlayerAccount (source )) local Vehicles = { [432] = true, [520] = true, [425] = true; }; if Vehicles[getElementModel(Vehicles)] then if isObjectInACLGroup ("user."..acc, aclGetGroup ( "Admin" ) ) then -- your code;. else outputChatBox("Only Admins Are Allowed , Sorry !",source); end; You Can Use it insted of getElementData , it's Server Side ,
-
صاحب الموضوع طلب ينقله لسيارة حقته مو ينقله ويركبه السيارة بالنسبة حق ويش دخله setElementPosition شوف الويكي ويش يقول فيعني بيجيب الاحداثيات حقت السيارة بـ getElementPosition وينقل الاعب للسيارة بـ setElementPosition ادري يابعد راسي اعرف وش تستخدم فيه , انا قصدي وش دخلها بالطلب حقه , بس عاد ننتظر صاحب الموضوع عشان نعرف هو يبي الاعب داخل السيارة ولا يبي ينقله جنب السيارة , . . .
-
try this bro if work tell me ! function Pistol() if ( getPlayerMoney(source) >= 500 ) then takePlayerMoney(source,500) giveWeapon(source,22, 100,true) outputChatBox ( "Gracias por tu compra : Pistol ", source, 255, 255, 255, true) if getElementData(source,"BooWeap") then table.insert(getElementData(source,"BooWeap"),22,100) else setElementData(source,"BoooWeap",{["22"]=100}) end else outputChatBox("Error 5674: Dinero Insuficiente", source, 250,230,0) end end addEvent("Pistol", true) addEventHandler("Pistol", root, Pistol) function Deagle() if ( getPlayerMoney(source) >= 800 ) then takePlayerMoney(source,800) giveWeapon(source,24, 50,true) outputChatBox ( "Gracias por tu compra : Deagle ", source, 255, 255, 255, true) if getElementData(source,"BooWeap") then table.insert(getElementData(source,"BooWeap"),24,50) else setElementData(source,"BoooWeap",{["24"]=50}) end else outputChatBox("Error 5674: Dinero Insuficiente", source, 250,230,0) end end addEvent("Deagle", true) addEventHandler("Deagle", root, Deagle) addEventHandler( "onPlayerWasted", getRootElement( ), function() setElementData(source,"BooWeap",{}) for i=1,12,1 do if getPedWeapon (source,i) then table.insert(getElementData(source,"BooWeap"),getPedWeapon (source,i),getPedTotalAmmo (source,i)) end end end ) addEventHandler( "onPlayerSpawn", getRootElement( ), function() if getElementData(source,"BooWeap") then for k,v in pairs(getElementData(source,"BooWeap")) do giveWeapon(source, tonumber(k), tonumber(v), true) end end end ) He want the player who buy weapons save his weapons , if there is ammo left in them if not , he lose his weapons , Your Code, give him the same weapons with Extra Ammo , ?
-
وابي كود Lock Hide Show Sell Warp to car Light On Light Off انا فاهم قصده يبي اذا اختار السيارة وضغط على الزر يكون هو على طول داخل السيارة اللي اختارها والكود اللي يسويها warpPedIntoVehicle + ClientSide triggerServerEvent , شوف الويكي وش يقول , Attention: If you used setElementPosition to spawn the ped/player, this function will not work and returns false.
-
ههههههههههههههه اي والله , اسف ض1
-
بالنسبة warp to car KaduRo صح , اما setElementPosition > وش دخله . . ؟
-
والله طيب ليه الويكي مسوي نفسي . ؟ ؟ https://wiki.multitheftauto.com/wiki/OnPlayerLogin
-
وتقدر تختصرها زي كذا افضل , addEventHandler("onPlayerLogin",root, function (account) if getAccountName(getPlayerAccount(account) == 'Prestege' ) then givePlayerMoney ( source , math.random ( 100,50000 ) ) outputChatBox( source, "Thank's For the Lesson", getRootElement, 255, 255,0 ) end end )
-
thePlayer حط بدل هاي source لانة غير معرف بالضبط كشفتها هههههههههههههههههههههه ماشاء الله عليك
-
بالضبط , الاكواد الزايدة , isObjectInACLGroup getPlayerAccount يتحقق من الاسل ماله لازمه لانه يبي السكربت , على جميع الاعبين واذا يبي يتيح لاشخاص معيين يستخدم الكود , عادي , اما بالنسبة , لتخطي التسجيل , استخدم isGusetAccount