[UCG]Mike
Members-
Posts
108 -
Joined
-
Last visited
Everything posted by [UCG]Mike
-
Hello everyone, i need some help, how to get the passwords from internal.db ?????
-
Try with this Server --[[ /** @ name: Give-an-Item Panel (GIP) @ author: Renkon @ version: 1.0 @ type: DayZ Addon @ description: Panel which lets you give items to any player connected to your server. */ ]] addEvent("onGIPGive", true) local aclGroup -- // Minimum group in order to access give GUI. local isConfigOkay = true -- // Checking if script works correctly. -- // Adding required information in order to make the addon work correctly. -- addEventHandler("onResourceStart", resourceRoot, function() call (getResourceFromName("DayZ"), "addAddonInfo", "GIP", "Give-an-Item Panel") aclGroup = get("aclMinimumGroup") if string.find(aclGroup, ",") then aclGroup = split(aclGroup, ',') end if type(aclGroup) == "string" then if not aclGetGroup(aclGroup) then outputError("Error config meta.xml. Bad ACL Group. Resource will not work") isConfigOkay = false return end else for i, val in ipairs(aclGroup) do if not aclGetGroup(aclGroup[i]) then outputError("Error config meta.xml. Bad ACL Group. Resource will not work") isConfigOkay = false return end end end end ) -- // Handling /give command. -- addCommandHandler("give", function(pSource) end ) if not isConfigOkay then return end if type(aclGroup) == "string" then if isObjectInACLGroup ("user."..accName, aclGetGroup("Admin" )) then triggerClientEvent(pSource, "onGIPOpened", pSource) else for i, _ in ipairs(aclGroup) do if isObjectInACLGroup ("user."..accName, aclGetGroup("Admin" )) then triggerClientEvent(pSource, "onGIPOpened", pSource) break end end end end -- // Function to inform. -- function outputError(msg) outputDebugString(msg, 1) outputChatBox(msg, root, 255, 0, 0, true) end -- // Give handler. -- addEventHandler("onGIPGive", root, function(pName, item, quantity) setElementData(getPlayerFromName(pName), item, quantity) outputChatBox("Given "..quantity.." "..item.." to "..pName, source, 255, 255, 0) outputChatBox("An admin gave you "..quantity.." "..item, getPlayerFromName(pName), 255, 255, 0) end )
-
idk but can see it https://wiki.multitheftauto.com/wiki/Useful_Functions
-
add me too kamelhaddad2000
-
what you mean with this picture ?
-
no he mean Ex: when he spawn in A marker he get new car or new skin and he he spawn from B marker he get old car/skin and sry for my bad english
-
Good Job You will upload this script in community ?
-
give us picture of your problem
-
visit www.mtasa.com/3213
-
hey guys i want to edit my script to be its a local Chat chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local)"..nick..": #ffffff"..msg,v,r,g,b,true) end end end addCommandHandler("Local",onChat)
-
you can try with this too https://community.multitheftauto.com/ind ... ls&id=7275
-
Hey guys idk where is the problem plz fix --\\\\\\\\\\\\\\\\\\\\\\\\\\ --// Setting local g_screenX, g_screenY = guiGetScreenSize(); local gScale = 0.3; local gAlphaDistance = 25; local gMaxDistance = 50; -- Max Distance local gTextAlpha = 120; local gTextSize = 1; local gAlphaDiff = gMaxDistance - gAlphaDistance; gScale = 1 / gScale * 800 / g_screenY; local gMaxScaleCurve = { { 0, 0 }, { 3, 3 }, { 13, 5 } }; local gTextScaleCurve = { { 0, 0.8 }, { 0.8, 1.2 }, { 99, 99 } }; local gTextAlphaCurve = { { 0, 0 }, { 25, 100 }, { 120, 190 }, { 255, 190 } }; local markerp = createMarker ( 125.67847442627, 1931.6518554688, 18.23836517334, "cylinder", 2, 41, 175, 5 ); local marker1p = createMarker ( 1550.4619140625, -1634.8922119141, 12.555536270142, "cylinder", 2, 41, 175, 5 ); addEventHandler ( 'onClientRender', root, function ( ) -- local x, y, z = getCameraMatrix(); local x1, y1, z1 = getElementPosition ( markerp ); local x2, y2, z2 = getElementPosition ( marker1p ); local distance_1 = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ); local distance_2 = getDistanceBetweenPoints3D( x, y, z, x2, y2, z2 ); -- -- Marker #1 if distance_1 <= gMaxDistance then local x1_, y1_ = getScreenFromWorldPosition( x1, y1, z1 + 0.95, 0.06 ); if x1_ and y1_ then -- local scale = 1 / ( gScale * ( distance_1 / gMaxDistance ) ); local alpha = ( ( distance_1 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "Military Forces", x1_, y1_, x1_, y1_, tocolor ( 17, 73, 0, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end -- Marker #2 elseif distance_2 <= gMaxDistance then local x2_, y2_ = getScreenFromWorldPosition( x2, y2, z2 + 0.95, 0.06 ); if x2_ and y2_ then -- local scale = 1 / ( gScale * ( distance_2 / gMaxDistance ) ); local alpha = ( ( distance_2 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "Military Forces", x2_, y2_, x2_, y2_, tocolor ( 17, 73, 0, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end end end ); -- ////////////////////////////////// -- // MATH FUNCTIONS // -- ////////////////////////////////// function math.evalCurve( curve, input ) if input < curve[ 1 ][ 1 ] then return curve[ 1 ][ 2 ]; end for idx = 2, #curve do if input < curve[ idx ][ 1 ] then local x1 = curve[ idx - 1 ][ 1 ]; local y1 = curve[ idx - 1 ][ 2 ]; local x2 = curve[ idx ][ 1 ]; local y2 = curve[ idx ][ 2 ]; local alpha = ( input - x1 ) / ( x2 - x1 ); return math.lerp( y1, y2, alpha ); end end return curve[ #curve ][ 2 ]; end function math.lerp( from, to, alpha ) return from + ( to-from ) * alpha; end Wnd = guiCreateWindow(544,193,321,470,"CNG ~ Job",false) guiWindowSetSizable( Wnd, false ) button = guiCreateButton(163,426,149,35,"No thanks!",false,Wnd) button2 = guiCreateButton(11,426,149,35,"Take job!",false,Wnd) label = guiCreateLabel(14,22,257,17,"Information about this job:",false,Wnd) memo = guiCreateMemo(9,44,322,217,"",false,Wnd) guiSetFont(label,"default-bold-small") showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, true ) skins = { {"Army", 287}, } skinG = guiCreateGridList(9,288,322,133,false,Wnd) guiGridListAddColumn(skinG, "Skins", 0.85) for i,skins in ipairs(skins) do row = guiGridListAddRow(skinG) -- guiGridListSetItemText(skinG, row, 1, tostring(skins[1]), false, false) guiGridListSetItemData(skinG, row, 1, tostring(skins[2])) end function Pilotjob(hitElement) if getElementData (source, "Group") == "Military Forces" then if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(Wnd) then guiSetVisible(Wnd, true) showCursor(true) end end end end addEventHandler("onClientMarkerHit", markerp, Pilotjob) addEventHandler("onClientMarkerHit", marker1p, Pilotjob) function takeJob() local row, col = guiGridListGetSelectedItem(skinG) if (row and col and row ~= -1 and col ~= -1) then local models = tonumber(guiGridListGetItemData(skinG, row, 1)) if model ~= "" then triggerServerEvent("Be MF", localPlayer, models) guiSetVisible(Wnd,false) showCursor(false) end end end addEventHandler("onClientGUIClick", button2, takeJob, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) afText = {} myTextItem = {} function warnText ( aWText, player ) if ( myTextItem[player] ) then textDestroyTextItem ( myTextItem[player]) end afText[player] = textCreateDisplay () textDisplayAddObserver( afText[player], player ) myTextItem[player] = textCreateTextItem ( aWText, 0.22, 0.8,0.5 , 255, 0, 0, 255, 3 ) textDisplayAddText ( afText[player], myTextItem[player] ) -- outputChatBox ( textA, player ) setTimer ( textDestroyTextItem, 5000, 1, myTextItem[player], player ) end function createPilotTeam () Pilotteam = createTeam ("Military Forces", 17, 73, 0 ) end addEventHandler ("onResourceStart", resourceRoot, createPilotTeam) function joinPilot(id) setPlayerTeam(source,Pilotteam) setPlayerNametagColor ( source, 17, 73, 0 ) setElementModel(source, id) setElementData(source, "Occupation","Military Forces", true) giveWeapon(source, 3, 1) playeraccount = getPlayerAccount( source ) setAccountData( playeraccount, "team", "Military Forces", true ) end addEvent("Be MF", true) addEventHandler("Be MF",root,joinPilot) function removePilot() setPlayerTeam(source, 0) playeraccount = getPlayerAccount(source) if not getAccountData(playeraccount, "standardskin") then setElementModel(source, 0) else setElementModel(source,getAccountData(playeraccount,"standardskin")) end end addEvent("removePilot", true) addEventHandler("removePilot",root,removePilot) markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) mposi = { getElementPosition( markers [ thePlayer ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ thePlayer ] = createPed( skins, x, y, z ) blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 62 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) end function inVEH ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then if ( getElementModel ( source ) == 511 ) then startJob ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 511 ) then local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) mposii = { getElementPosition( markers [ thePlayer ] ) } blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 41 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end function pickmeup ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local mx, my, mz = unpack ( mposi ) local mmx, mmy, mmz = unpack ( mposii ) local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy ) finalmoney = math.floor ( money ) if finalmoney then setTimer( givePlayerMoney, 3000, 1, thePlayer, finalmoney ) setTimer( outputChatBox, 3000, 1, thePlayer, "You have earned ".. money .."!", 0, 144, 0) setTimer ( function ( ) if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) end startJob ( thePlayer ) end ,3000, 1 ) end end end
-
hey guys i have problem in my Staff job when any one shoot me with weapons my car blow any help plz and sry for my bad english
-
ty but now any one help to fix this panel
-
Hey Guys ... idk where is the problem any one help me to chenge the server.lua or anything Client.lua local theJobsTable = { [0] = { "SWAT Team", "SWAT", 285 } } function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end hitWnd = guiCreateWindow(854, 329, 248, 399, "CNG ~ Setjob", false) cancel = guiCreateButton(132, 353, 83, 36, "Cancel", false, hitWnd) guiWindowSetSizable(hitWnd, false) guiWindowSetMovable(hitWnd, false) centerWindow(hitWnd) guiSetVisible(hitWnd, false) -- Gridlist buttonsGridList = guiCreateGridList(10, 67, 221, 276, false, hitWnd) local column1 = guiGridListAddColumn(buttonsGridList,"Occupation",0.5) local column2 = guiGridListAddColumn(buttonsGridList,"Team",0.5) local name = guiCreateEdit(16, 28, 211, 29, "", false, hitWnd) local set_Job = guiCreateButton(30, 353, 83, 36, "Set Job", false, hitWnd) guiSetProperty(hitButton, "NormalTextColour", "FFAAAAAA") closeButton = guiCreateButton(289, 165, 95, 34, "Close", false, hitWnd) addEventHandler("onClientGUIClick", root, function() if (source == closeButton) then guiSetVisible(hitWnd, false) showCursor(false) end end ) guiSetProperty(closeButton, "NormalTextColour", "FFAAAAAA") -- Labels guiSetFont(label1, "default-small") for i=0,#theJobsTable do local occupation, team = theJobsTable[i][1], theJobsTable[i][2] local row = guiGridListAddRow ( buttonsGridList ) guiGridListSetItemText ( buttonsGridList, row, column1, occupation, false, false ) guiGridListSetItemText ( buttonsGridList, row, column2, team, false, false ) guiGridListSetItemData ( buttonsGridList, row, column1, i) end function openHitGUI () if (getPlayerTeam(localPlayer)) and (getTeamName (getPlayerTeam ( localPlayer )) == "Staff") then if (guiGetVisible(hitWnd)) then guiSetVisible(hitWnd, false) showCursor(false) else guiSetVisible(hitWnd, true) showCursor(true) end end end addCommandHandler("setjob", openHitGUI) function closeWindow () guiSetVisible(hitWnd, false) showCursor(false) end addEventHandler("onClientGUIClick", cancel, closeWindow, false) function setJob() -- check local row, column = guiGridListGetSelectedItem ( buttonsGridList ) if ( row ) and ( column ) then local jobsID = guiGridListGetItemData ( buttonsGridList, row, column ) if ( jobsID ) then local occupation = theJobsTable[jobsID][1] local team = theJobsTable[jobsID][2] local skin = theJobsTable[jobsID][3] local setjobFrom = guiGetText(name) if ( setjobFrom == "" ) then local thePlayer = localPlayer triggerServerEvent("changeJob", localPlayer, thePlayer, occupation, team, skin) closeWindow () outputChatBox("Your job has succesfully been changed to " ..occupation.."" , 220, 0, 0) else local thePlayers = getElementsByType("player") for i=1, #thePlayers do if string.find(getPlayerName(thePlayers[i]):lower(), tostring(setjobFrom):lower(), 1, true) then local thePlayer = thePlayers[i] triggerServerEvent("changeJob", localPlayer, thePlayer, occupation, team, skin) closeWindow () outputChatBox("The job of" ..thePlayer.. "has succesfully been changed to" ..occupation.."", 220, 0, 0) break end end end end end end addEventHandler("onClientGUIClick", set_Job, setJob, false) Server.lua Teame1 = createTeam("SWAT", 0, 0, 255) CT = { [Teame1] = true } function CriminalSet () local team = getTeamFromName ( "SWAT" ) if team then setPlayerTeam ( source, team ) setPlayerNametagColor ( source, 255, 0, 0 ) setElementModel(source, 230) outputChatBox(" You are now Criminal ",localPlayer,255,0,0,true) else local teamx = getTeamFromName ( "SWAT" ) if teamx then cancelEvent() outputChatBox("You do not need to use this again!", thePlayer,0,255,255) end end end addEvent("changeJob", true) addEventHandler("changeJob", root, CriminalSet )
-
hey guys i want to add Prograss to turf system Ex: local pCuboid1 = createColCuboid(1121.9619140625, 2722.2265625, 10, 410, 150, 60) local pArea1 = createRadarArea( 1121.9619140625, 2722.2265625, 410, 140, 255, 255, 255, 255 ) setElementData(pCuboid1, "friendly", "no") setElementData(pCuboid1, "ownedBy", "") function callClientFunction(client, funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do if (type(value) == "number") then arg[key] = tostring(value) end end end triggerClientEvent(client, "onServerCallsClientFunction", resourceRoot, funcname, unpack(arg or {})) end addEventHandler('onColShapeHit', pCuboid1, function(p) local getOwnedBy = getElementData(pCuboid1, "ownedBy") callClientFunction(p, "NeedMsg", 6, getOwnedBy) callClientFunction(p, "NeedMsg", 1) exports["DENdxmsg"]:sendClientMessage ("You entered a Radio Taken Turf", getOwnedBy, 0, 255, 0, true, 8 ) if (getPlayerTeam(p)) then local pTeam = getPlayerTeam( p ) local iR, iG, iB = getTeamColor( pTeam ) local rR, gG, bB = getRadarAreaColor( pArea1 ) local data = getElementData(pCuboid1, "friendly") if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) and ( data == "yes" ) then callClientFunction(p, "NeedMsg", 2) else setRadarAreaFlashing( pArea1, true ) capturing = setTimer( function( ) setElementData(pCuboid1, "friendly", "yes") setElementData(pCuboid1, "ownedBy", getTeamName(pTeam)) givePlayerMoney( p, 4000 ) callClientFunction(p, "NeedMsg", 4) setRadarAreaColor( pArea1, iR, iG, iB ) setRadarAreaFlashing( pArea1, false ) end, 5000, 1 ) end else callClientFunction(p, "NeedMsg", 3) end if (getPedOccupiedVehicle( p )) then callClientFunction(p, "NeedMsg", 5) end end ) addEventHandler('onColShapeLeave', pCuboid1, function(p) local getOwnedBy = getElementData(pCuboid1, "ownedBy") setRadarAreaFlashing( pArea1, false ) callClientFunction(p, "NeedMsg", 7, getOwnedBy) if isTimer(capturing) then killTimer(capturing) end end ) this is my turf system tHandler("onClientRender", root, function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then else return end if isElementWithinColShape(localPlayer,LVcol) or isElementWithinColShape(localPlayer,seaCol) then x,y=AbsoluteToRelativ2(63, 737) x2,y2=AbsoluteToRelativ2(283, 762) dxDrawText(towerString1, x,y,x2,y2, tocolor(towerr,towerg,towerb, 255), 1, "default-bold", "center", "top", false, false, true, false, false) x,y=AbsoluteToRelativ2(63, 750) x2,y2=AbsoluteToRelativ2(283, 775) dxDrawText(towerString2, x,y,x2,y2, tocolor(towerr,towerg,towerb, 255), 1, "default-bold", "center", "top", false, false, true, false, false) end if currentTurfData == nil then return end if isPlayerMapVisible() then return end x,y=AbsoluteToRelativ2(1002,238) x2,y2=AbsoluteToRelativ2(212, 21) if currentTurfData.attackinggroup == "None" then if currentTurfData.owner=="Unoccupied" then dxDrawRectangle(x,y,x2*(currentTurfData.health/100),y2, tocolor(255,255,255, 255), true) elseif (currentTurfData.colors[currentTurfData.owner]) then dxDrawRectangle(x,y,x2*(currentTurfData.health/100),y2, tocolor(currentTurfData.colors[currentTurfData.owner][1],currentTurfData.colors[currentTurfData.owner][2],currentTurfData.colors[currentTurfData.owner][3], 255), true) else dxDrawRectangle(x,y,x2*(currentTurfData.health/100),y2, tocolor(255,255,255, 255), true) end else dxDrawRectangle(x,y,x2*(currentTurfData.health/100),y2, tocolor(currentTurfData.colors[currentTurfData.attackinggroup][1],currentTurfData.colors[currentTurfData.attackinggroup][2],currentTurfData.colors[currentTurfData.attackinggroup][3], 255), true) end x,y=AbsoluteToRelativ2(1000, 234) x2,y2=AbsoluteToRelativ2(217, 30) dxDrawRectangle(x,y,x2,y2, tocolor(19, 0, 0, 100), true) x,y=AbsoluteToRelativ2(1120, 234) x2,y2=AbsoluteToRelativ2(1120, 262) dxDrawLine(x,y,x2,y2, tocolor(9, 130, 0, 255), 1, true) x,y=AbsoluteToRelativ2(1041, 234) x2,y2=AbsoluteToRelativ2(1041, 262) dxDrawLine(x,y,x2,y2, tocolor(129, 2, 20, 255), 1, true) x,y=AbsoluteToRelativ2(996, 236) x2,y2=AbsoluteToRelativ2(1224, 262) dxDrawText(currentTurfData.barText, x,y,x2,y2, tocolor(255, 255, 255, 255), 1, "default", "center", "center", false, false, true, false, false) x,y=AbsoluteToRelativ2(1001, 292) x2,y2=AbsoluteToRelativ2(1216, 318) dxDrawText(">> Turf Influence <<", x,y,x2,y2, tocolor(0, 255, 0, 255), 1, "default", "center", "top", false, true, true, false, false) local i=1 for k,v in pairs(currentTurfData.influences) do local mult = 10^2 if k ~= "CNG Law" and k ~= "Criminals" then i=i+1 local imgY=292+(30*(i-1)) _,imgY=AbsoluteToRelativ2(0,imgY-7) x,y=AbsoluteToRelativ2(1001, 292+(30*(i-1))) x2,y2=AbsoluteToRelativ2(1216, 318) v=v/2 v = (math.floor(v * mult + 0.5) / mult) --v=math.floor(v) local vpos = v local vnum = v if v < 0 then vpos=vpos*-1 end local timesToDrawFull = math.floor(vpos) local timesToDrawHalf = 0 if vpos-timesToDrawFull > 0 then timesToDrawHalf=1 end if v > 0 then v="+"..v..""end dxDrawText(""..k.."", x,y,x2,y2, tocolor(currentTurfData.colors[k][1], currentTurfData.colors[k][2], currentTurfData.colors[k][3], 255), 1, "default", "center", "top", false, true, true, false, false) for i2=1,timesToDrawFull do if vnum > 0 then x3,y3=AbsoluteToRelativ2(1161+(30*(i2-1)), 317) else x3,y3=AbsoluteToRelativ2(1031-(30*(i2-1)), 317) end x4,y4=AbsoluteToRelativ2(36, 26) dxDrawImage(x3,imgY,x4,y4, "full.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end if timesToDrawHalf > 0 then if vnum > 0 then x3,y3=AbsoluteToRelativ2(1161+(30*(timesToDrawFull+1-1)), 317) else x3,y3=AbsoluteToRelativ2(1031-(30*(timesToDrawFull+1-1)), 317) end dxDrawImage(x3,imgY,x4,y4, "half.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end end end x,y=AbsoluteToRelativ2(1001, 265) x2,y2=AbsoluteToRelativ2(1216, 291) dxDrawText(""..currentTurfData.text.."", x,y,x2,y2, tocolor(textr,textg,textb, 255), 1, "default", "left", "top", false, false, true, false, false) end ) and this is the progress and sry for my bad english
-
ty and i want to add test when any player hit this cols Ex: You entred in Turf owned by .... outputChatBox
-
hey guys ..... turfSpawnTable = { [1] = { 1678.14, 2331.15, 10.82, 273.35775756836 }, [2] = { 1880.89, 2339.45, 10.97, 269.00161743164 }, [3] = { 2245.16, 2005.47, 10.82, 0.21148681640625 }, [4] = { 2237.48, 2125.49, 10.82, 356.15197753906 }, [5] = { 2029.36, 1933.53, 12.23, 266.12313842773 }, [6] = { 1417.09, 2091.61, 11.01, 82.934326171875 }, [7] = { 1635.65, 1038.43, 10.82, 264.73333740234 }, [8] = { 1980.15, 1798.95, 12.34, 176.65460205078 }, [9] = { 2010.08, 1177.31, 10.82, 215.78851318359 }, [10] = { 1955.01, 1343.09, 15.37, 267.49645996094 }, [11] = { 1452.9, 2368.78, 10.82, 263.83795166016 }, [12] = { 1164.08, 1336.63, 10.81, 88.367126464844 }, [13] = { 943.93, 1733.04, 8.85, 265.27719116211 }, [14] = { 966.79, 2072.79, 10.82, 278.10940551758 }, [15] = { 1047.33, 2161.22, 10.82, 267.41955566406 }, [16] = { 1069.38, 1887.18, 10.82, 267.08993530273 }, [17] = { 1086.41, 1610.5, 5.82, 12.428466796875 }, [18] = { 1629.91, 994.05, 10.82, 268.82580566406 }, [19] = { 1947.96, 1625.71, 22.76, 274.81344604492 }, [20] = { 2609.26, 2392.2, 17.82, 17.487762451172 }, [21] = { 2341.51, 2805.07, 10.82, 181.4172668457 }, [22] = { 2496.23, 2320.42, 10.82, 92.833129882812 }, [23] = { 2855.62, 2418.89, 10.82, 228.46691894531 }, [24] = { 2368.26, 2311.21, 8.14, 349.74685668945 }, [25] = { 2456.51, 2020.87, 11.06, 109.5491027832 }, [26] = { 2470.94, 2127.92, 10.82, 356.69580078125 }, [27] = { 2580.6, 2185.06, 10.82, 351.66400146484 }, [28] = { 2600.43, 2085.82, 10.81, 268.26000976562 }, [29] = { 2629.76, 1716.96, 11.02, 90.789642333984 }, [30] = { 2443.15, 1655.06, 10.82, 232.93293762207 }, [31] = { 2440.58, 1750.76, 10.82, 357.9153137207 }, [32] = { 2408.78, 1866.87, 6.01, 357.9153137207 }, [33] = { 2220.33, 1839.7, 10.82, 89.756927490234 }, [34] = { 2161.98, 1643.88, 11.11, 12.340576171875 }, [35] = { 2484.99, 1529.75, 10.84, 321.74227905273 }, [36] = { 2565.13, 1442.24, 11.03, 87.570617675781 }, [37] = { 2576.65, 1221.56, 10.82, 87.345397949219 }, [38] = { 2542.75, 1279.4, 10.82, 81.357757568359 }, [39] = { 2588.68, 1324.5, 10.82, 177.04461669922 }, [40] = { 2483.38, 1363.89, 10.81, 1.6122741699219 }, [41] = { 2479.25, 1291.08, 10.81, 265.03549194336 }, [42] = { 2507.62, 1210.74, 10.82, 179.81323242188 }, [43] = { 2467.91, 1405.13, 10.82, 277.16458129883 }, [44] = { 2283.97, 1388.91, 10.82, 356.69030761719 }, [45] = { 2136.67, 1493.05, 10.82, 0.00274658203125 }, [46] = { 2096.24, 1284.98, 10.82, 179.21997070312 }, [47] = { 2257.51, 1286.12, 19.16, 88.119934082031 }, [48] = { 2551.48, 1169.08, 18.71, 181.14259338379 }, [49] = { 2552.76, 1054.41, 10.82, 266.17807006836 }, [50] = { 2393.09, 1003.33, 10.82, 91.262084960938 }, [51] = { 2491.58, 1149.32, 22.02, 182.23025512695 }, [52] = { 2466.65, 1065.37, 10.82, 0.00274658203125 }, [53] = { 2476.44, 992.23, 10.82, 269.96292114258 }, [54] = { 2883.68, 894.57, 10.75, 89.537200927734 }, [55] = { 2575.47, 724.07, 10.82, 359.99176025391 }, [56] = { 2361.69, 694.46, 11.44, 4.79833984375 }, [57] = { 2221.24, 694.27, 11.45, 355.48181152344 }, [58] = { 2056.33, 730.03, 11.46, 358.47561645508 }, [59] = { 1533.66, 751.34, 11.02, 262.45364379883 }, [60] = { 1634.18, 759.18, 10.82, 181.89517211914 }, [61] = { 1917.02, 703.28, 11.13, 86.691680908203 }, [62] = { 2269.87, 965.09, 10.81, 353.1471862793 }, [63] = { 1904.34, 974.14, 10.82, 177.90155029297 }, [64] = { 2177.31, 1117.87, 12.64, 60.390014648438 }, [65] = { 1148.5, 758.79, 10.82,357}, [66] = { 1010.55,942.94,11,328}, [67] = { 2496.79, 2772.79, 10.82,79}, [68] = { 1493.52, 2773.69, 10.82, 275}, [69] = {2856.35, 2612.98, 10.82,264}, [70] = { 3217.61, 1857.92,194}, [71]= {3341.33, 1313.76, 7.88,179}, [72]= {3437.79, 1221.1, 7.91,92}, [73] = {3277.08, 946.24, 7.77,293}, [74] = { 3414.06, 947.97, 7.77,175}, [75] = {3306.74, 1100.21, 7.77 ,330}, [76] = { 3347.37, 545.36, 52.47,357}, [77] = {3110.62, 2115.57, 1.39,90}, createColRectangle (turfSpawnTable ) how i can create all this cols with one event ?
-
The Fake: https://community.multitheftauto.com/ind ... ls&id=9933 The Real (my script): https://community.multitheftauto.com/ind ... ls&id=9822 DONE