-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
ممسوح جرب طف الديث ماتش و شوف يكرر أو لا؟ أحتمال من التاج نفسه
-
أفتح الملف الي بالمسار ذا tdma\Main\tdma_core.lua و أحذف من سطر 336 إلى سطر 351 تحديداً هذا الكود function onChat ( message, theType ) if theType == 0 then cancelEvent() message = string.gsub(message, "#%x%x%x%x%x%x", "") local team = getPlayerTeam ( source ) local bastidName = getPlayerName ( source ) if ( team ) then local r, g, b = getTeamColor ( team ) outputChatBox ( bastidName..":#FFFFFF "..message, getRootElement(), r, g, b, true ) else outputChatBox ( bastidName..": "..message ) end outputServerLog( "CHAT: " .. bastidName .. ": " .. message ) end end addEventHandler ( "onPlayerChat", root, onChat )
-
infoB1 = guiCreateButton(480,106,169,21,"Show Money in Chat | 2$",false,info) guiSetProperty(infoB1,"NormalTextColour", "FF00FF00")
-
We can't help you without the code.
-
There a new argument were added to function removeWorldModel, maybe this is cause the problem. check the wiki removeWorldModel
-
https://wiki.multitheftauto.com/wiki/GetPlayerCount
-
Have you open the http port? in Server Console (Black) Write this: openports tell us the result.
-
http://bugs.multitheftauto.com/view.php?id=6910
-
addEventHandler('onPlayerChat', root, function(message,type) if type == 0 then cancelEvent() local fX, fY, fZ = getElementPosition(source) local r, g, b = getTeamColor(getPlayerTeam(source)) message = string.format('#%02X%02X%02X(%s)%s:#ffffff%s', r or 255, g or 255, b or 255, zoneNames[getZoneName(fX, fY, fZ, true)], getPlayerName(source), message) outputChatBox(message, root, 255, 255, 255, true) end end)
-
لانك يا عزيزي أنت سائق السيارة و الكود ما يصلح إذا كان الي كتب الكومند سائق السيارة الي صلح السيارة موب الكود لان ذا الكومند موجوده فيه (freeroam) الي صلح السيارة هو مود بلاي
-
-- Client Side -- guiCreateButton -- عمل الزرين showCursor -- أظهار الماوس addEventHandler -- أضافة أفنت onClientGUIClick -- الأفنت triggerServerEvent -- عمل ترقير إلى السيرفر عند الضغط على الزر guiSetVisible -- أخفاء الزر showCursor -- أخفاء الماوس -- Server Side -- createTeam -- عمل التيمين عند تشغيل السكربت addEvent -- أضافة أفنت الترقير addEventHandler -- أضافة أفنت الترقير setPlayerTeam -- أضافة اللاعب في التيم spawnPlayer -- سباون إلى اللاعب في البداية بعد ما تسويه جربه و إذا فيه مشكلة أكتب بأف8 /debugscript 3 وشوف أيش الأخطاء و حط الكود بالموضوع + الأخطاء + أيش مشكلة الكود
-
function fixCar(player) if (getElementModel(player) == 50) then local vehicle = getPedOccupiedVehicle(player) if (vehicle) then local Driver = getVehicleController(vehicle) local VehicleHealth = getElementHealth(vehicle) if (Driver) and (Driver ~= player) and (VehicleHealth < 1000) then takePlayerMoney(Driver,100) givePlayerMoney(player,100) fixVehicle(vehicle) end end end end addCommandHandler("repair", fixCar) addCommandHandler("rp", fixCar)
-
إذا تقصد مود اختيار الشخصية الي سعد سارقه, أنا ما أسمح لك تستخدمه ياليت مره ثانية تستخدم الرسائل الخاصة يغلق
-
Change this (Line 16) Closebtn = guiCreateButton(0.2492,0.9095,0.5047,0.0562,"Close",true,windowjob) to closebtn = guiCreateButton(0.2492,0.9095,0.5047,0.0562,"Close",true,windowjob)
-
lol, i saw this code almost 5 - 6 times in Scripting section. Change this local H = getElementData(killer, "EXP") to local H = getElementData(killer, "EXP") or 0
-
Try local marker = createMarker( 1552.4996337891, -1677.3264160156, 15.1953125, "Cylinder", 1.5, 0, 0, 255, 150) local marker1 = createMarker( 2241.8999023438, 2435.8999023438, 9.8000001907349, "Cylinder", 1.5, 0, 0, 255, 150) local marker2 = createMarker( -2129, -2481.3999023438, 29.60000038147, "Cylinder", 1.5, 0, 0, 255, 150) local marker3 = createMarker( -1616.9000244141, 681, 6.0999999046326, "Cylinder", 1.5, 0, 0, 255, 150) local marker4 = createMarker( -216.5, 978, 18.5, "Cylinder", 1.5, 0, 0, 255, 150) local skins = {"police 1", "police 2", "police 3", "police 4", "police 5", "police 6"} windowjob = guiCreateWindow(0.335,0.14,0.3963,0.6817,"Police job",true) guiSetVisible(windowjob, false) infomemo = guiCreateMemo(0.0347,0.0611,0.9369,0.3667,"Job information",true,windowjob) skinsgrid = guiCreateGridList(0.0347,0.4841,0.9369,0.313,true,windowjob) guiGridListSetSelectionMode(skinsgrid,2) _skins = guiGridListAddColumn(skinsgrid,"Skins",0.-- s8) --> takebtn = guiCreateButton(0.2492,0.8289,0.5047,0.0562,"Take Job",true,windowjob) Closebtn = guiCreateButton(0.2492,0.9095,0.5047,0.0562,"Close",true,windowjob) infolbl = guiCreateLabel(0.2681,0.4279,0.4637,0.0538,"Choose your skin :",true,windowjob) guiLabelSetColor(infolbl,0,0,255) guiLabelSetVerticalAlign(infolbl,"center") guiLabelSetHorizontalAlign(infolbl,"center",false) guiSetFont(infolbl,"default-bold-small") for index, skin in ipairs(skins) do local row = guiGridListAddRow (skinsgrid) guiGridListSetItemText(skinsgrid, row, _skins, tostring(skin), false, false) end addEventHandler("onClientGUIClick", root, function () if (source == takebtn) then local row,col = guiGridListGetSelectedItem(skinsgrid) if (row and col and row ~= -1 and col ~= -1) then local skinName = guiGridListGetItemText(skinsgrid, row, 1) if skinName == "police 1" then setElementModel(getLocalPlayer(), 280) elseif skinName == "police 2" then setElementModel(getLocalPlayer(),281) elseif skinName == "police 3" then setElementModel(getLocalPlayer(), 282) elseif skinName == "police 4" then setElementModel(getLocalPlayer(), 283) elseif skinName == "police 5" then setElementModel(getLocalPlayer(),284) elseif skinName == "police 6" then setElementModel(getLocalPlayer(), 288) end triggerEvent("closeWindow", localPlayer) else outputChatBox("Please,select a skin of the list.",255,0,0) end elseif (source == closebtn) then triggerEvent("closeWindow", localPlayer) end end) function SAPDjob(hitElement) if (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, SAPDjob) addEventHandler("onClientMarkerHit", marker1, SAPDjob) addEventHandler("onClientMarkerHit", marker2, SAPDjob) addEventHandler("onClientMarkerHit", marker3, SAPDjob) addEventHandler("onClientMarkerHit", marker4, SAPDjob) function SAPDjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, SAPDjobleave) addEventHandler("onClientMarkerLeave", marker1, SAPDjobleave) addEventHandler("onClientMarkerLeave", marker2, SAPDjobleave) addEventHandler("onClientMarkerLeave", marker3, SAPDjobleave) addEventHandler("onClientMarkerLeave", marker4, SAPDjobleave) function joinTeam() triggerServerEvent("setSAPD",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", takebtn , joinTeam, false) function removeSAPDWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", closebtn , removeSAPDWindow, false)
-
غير ذا takePlayerMoney(player,100) إلى givePlayerMoney(player,100)
-
bad argument #1 to 'ipairs' (table expected,got nil) The error identifies itself, You don't have a table called "skins", that all. Though you don't need to create the gui every time you hit the marker, just create it when the resource start and hide it with guiSetVisible, and when you hit the marker show it with guiSetVisible again. Also setElementModel should be used server side, or only you will see your skin, other won't.
-
مافهمت أيش تبي بالضبط الكود الي أنت حاطه مافيه أخطاء
