-
Posts
512 -
Joined
-
Last visited
Everything posted by 3B00DG4MER
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
3B00DG4MER replied to 50p's topic in Scripting
You're welcome He has to make MTA:SE works with MTA 1.4 Too and MTA:SE still not updated yet -
and what about 'hours' and 'Days' and 'Months' and 'Years' It's going hard...
-
Hi,Today I've made a Admin Panel (For my server with MySQL) I've stopped working at a problem (Ban System) i can't get the time after 10 mins or 1 hour or 10 days or 1 year Here's my code I've tried local time = guiGetText(ban.edit[2]) -- Mins local realtime = getRealTime() local timestamp = realtime.timestamp date = timestamp + time
-
Here we help you fix problems with your script and not giving ready scripts Please, try to make the script if you can't do thing hard just Post a Topic and Thanks
-
Hi Guys, Today i tried make script which add model and not replace Please need really help
-
What's the problem with it ?
-
Hi Guys, today i've made a little script of stats so, i saw dat if u make label and u're out of lines (multi-line) the scrollbar don't show Can u help me with dis ??? i don't even have any idea how to make it
-
I fixed It I don't know Why,but it's works only but a Event or A Command, Thanks
-
https://code.google.com/p/mtasa-resources/source/browse/trunk/%5Bgameplay%5D/gps/util.lua
-
team = createTeam ( "Team Name" ) function idkname () local r = math.random(0,255) local g = math.random(0,255) local b = math.random(0,255) setTeamColor ( team, r, g, b ) end setTimer(idkname ,1000,0)
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
3B00DG4MER replied to 50p's topic in Scripting
i have same problem too but at my work pc can install mtase (use win 8.1) when i go back my room,my room pc cannot install mtase You've to Install MTA SA 1.3 -
Hi Guys today i was Editing On GPS Resource (included With MTA SA Resources) i've added That Function to "Client.lua" function calculateRoute(tox, toy, toz) local x,y,z = getElementPosition(getLocalPlayer()) local path = server.calculatePathByCoords(x, y, z, tox, toy, toz) for i,node in ipairs(path) do createMarker(node.x, node.y, node.z, 'corona', 5, 50, 0, 255, 200) addLinePoint ( node.x, node.y ) end end if i Call The Shared Function into Another Resource: exports[ "gps" ].calculateRoute(100,100,10 ) it's Debug attempt to yield across metamethod\C-call boundary Failed To Call 'gps:calculateRoute' gps\until.lua:5:bad argument #1 to '_resume' (coroutine expected)
-
Hi Guys, Today i was looking for somethings in Google i saw a fairplay gamemode i go to test it it's really cool but need help from Socialz to fix the the DMV system plz it's bugged and Can u show me how to add shops i mean it's has only 27-4 Shops i tried to add but it bugged so i redownload plz hlp !!
-
Hi Guys today i'm making a CnR system But i found a problem to check if player change team Can u help me Guys with that event (onPlayerTeamChange) ?
-
i've replaced "marker[4]" with "jails[index][4]" and i added on every row "jails" table index of the row
-
i don't need your help i fixed myself
-
Anyone One GUys HELP §!!!!!!!
-
Look again cuz i've edited it coptargets = 0 local jails = { {2246.1008300781, 2453.1953125, 9.8203125}, {-1406.9072265625, 2655.0927734375, 55.6875}, {-209.9542, 977.7558, 18.188976}, {-1628.2619628906, 676.62005615234, 6.1901206970215}, {624.66278076172, -605.72027587891, 15.923292160034}, {1565.3386230469, -1628.5202636719, 12.382812}, {-2164.3779296875, -2389.533203125, 29.617206573486} } marker = {} function getNearestDP ( x, y ) local temp = { } -- Define a table to store our data. for index = 1, #jails do -- Loop from 1 to the total items in "jails" table. local dist = getDistanceBetweenPoints2D ( x, y, jails [ index ] [ 1 ], jails [ index ] [ 2 ] ) -- Get the distance between the jail coordinates and the given coordinates. table.insert ( temp, { index = index, dist = dist } ) -- Insert it into our "temp" table. end table.sort ( -- Sort the "temp" table by lowest distance. temp, function ( a, b ) return ( ( a.dist or 0 ) < ( b.dist or 0 ) ) end ) return unpack ( jails [ temp [ 1 ].index ] ) -- Return coordinates from the nearest jail. end addEvent("copdirections", true) function copshops( ) if coptargets == 0 then coptargets = 1 for index = 1, #jails do marker[index] = createMarker ( jails [ index ] [ 1 ], jails [ index ] [ 2 ], jails [ index ] [ 3 ], "cylinder", 6, 0, 0, 255, 55, getLocalPlayer() ) end local x, y, z = getElementPosition ( source ) local hx, hy, hz = getNearestDP ( x, y ) blip = createBlip ( hx, hy, hz , 30, 3, 0, 0, 255, 255, 50 ) colshape = createColSphere ( hx, hy, hz, 6 ) setElementData ( colshape, "purpose", "copshop" ) end end addEventHandler("copdirections", getRootElement(), copshops) --REMOVES POLICE STATION BLIPS FROM COPS RADAR AND THE MARKERS addEvent("clearcopdirections", true) function clearcopshops() if coptargets == 1 then coptargets = 0 destroyElement ( blip ) for index = 1, #jails do destroyElement ( marker[index] ) end destroyElement ( colshape ) end end addEventHandler("clearcopdirections", getRootElement(), clearcopshops)
