-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
this was explained above. make a proper indentation - then you will see what's wrong (hopefully).
-
read carefully. you have setSkyGradient before, and Static-X wants to show you how to make sky same color as headlights. Read carefully. We can't help you with your English misunderstanding, answering five times to same problem is useless.
-
This IS step by step. It can't be simpler. If you don't understand it I think it's because of your English. just read it slowly and think a bit
-
omfg... Add ")" before "do"
-
it says it needs ) before "do" .. JUST ADD IT THEN, guys! come on! how can you ask for help with syntax errors!?? this mean you don't even TRY to think for a 5 damn seconds
-
post your mtaserver.conf file
-
just read carefully wiki pages. everything is explained
-
this is english forums - use english. i don't understand you.
-
server list is handled by game-monitor. so wtf?
-
some ppl found a way to change their serials. what you can do: ban ip range 79.240.117.0 - 79.240.117.255 or make your own extra ban system - just save an xml file (even empty, or something) on this guy resources - and then check if this file exists - then server would auto-kick him - warning: don't name this res like: "ban" or anything that he could be aware of (like your server name). name it "shop" or something, and your xml like "items.xml"
-
Wut? Syntax error? Install anything better than Notepad - it should show you syntax errors (check Stickies on this forum - you can use Notepad++, 50p's Unofficial Script Editor, whatever). Also - syntax errors are telling you WHAT and WHERE something is wrong. -- error: -- '('expected near 'setPlayerTeam' function assignteamM setPlayerTeam (thePlayer, Medical) -- ( is expected before this line, so quick look - oh yea - you forgot the brackets () on function definition line! was it so hard?
-
New? Here is all you need-> Click. First - read this -> https://wiki.multitheftauto.com/wiki/Server_Manual If you want to create scripts or use the one Zango gave you - read this -> https://wiki.multitheftauto.com/wiki/Resources and https://wiki.multitheftauto.com/wiki/Scr ... troduction Be sure also to read forum rules and Scripting stickies.
-
lol, will not crash, but probably should work as you expected. ill try it later
-
remi-x - this was for getting this, not setting.. Doomed - lol, this makes sense.. probably all that math makes my brain crazy and now i want to solve every problem with this o_O
-
@Lukasz56: as said - im not playing mta currently. maybe some day.
-
i had somewhere a function to count angle between points, and i have a function to get an angle (comparing to Y axis) of element velocity - which you will have to "inverse" in some way. then you will be able to count it. let me search for them make a function from this, and return angle viewtopic.php?f=91&t=29586&p=324244&hilit=north#p324244 and a function to get angle of velocity: function getElementVelocityAngle(vehicle) if (isElement(vehicle)) then local vx,vy,vz = getElementVelocity(vehicle) local cosX2 = (math.deg(math.atan(vx/vy))+90) if (vy>0) then cosX2=cosX2+180 end cosX2 = 360-cosX2 cosX2 = cosX2+270 if (cosX2 > 360) then cosX2 = cosX2-360 end return cosX2 end end idk how to reverse it
-
ppl love loops for some reason.. ill plan to get back to playing mta some time.. i'll try to remember 3d modelling and make a lot of custom maps. custom objects + a lot of different scripts = perfect maps
-
flying with double jump: https://community.multitheftauto.com/index.php?p= ... ils&id=220 how to set local server? just run mta server.exe from server folder
-
water invisible through vehicle windows
dzek (varez) replied to StreetFighter163's topic in Scripting
uhm, afaik this happens in single player too, and it's totally not related to mta. gta engine always had a problem on showing two layers of semi-transparent objects (look on trees in vice city - it's clearly visible there) -
i dont understand what you mean?
-
Little help (gas stations, useful objects,ppl for beta-test)
dzek (varez) replied to dzek (varez)'s question in Client
thanks, 2nd one would be better if bigger, but maybe i'll use it. first and last - perfect -
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
dzek (varez) replied to 50p's topic in Scripting
Uhm, there is extension for lua for eclipse (but i failed it to run - it added some menus etc, but opening lua file = error). and as for function list and description - you need just to add a file in search path with all these functions and description. like: /** * OutputChatBox * This outputs the specified text string to the chatbox. * @param [string] text The text string that you wish to send to the chat window. * @param (optional) [element] visibleTo This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility * ... etc etc * @return [bool] Returns true if the message was displayed successfully. Returns false if invalid arguments are specified. **/ function outputChatBox(text, visibleTo, r, g, b, colorCoded) end -- and here goes other functions described like that.. the problem would be functions that are both client/server and differ with arguments.. or maybe you thought about own extension with meta.xml auto-editing and such things? -
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
dzek (varez) replied to 50p's topic in Scripting
i thought about extending Eclipse editor with lua support to have function list with parameters, short description and link to wiki. I tried once strony lua handling to it but failed. the problem could be that Eclipse size is around 200MB. but I'm using Eclipse everyday with PHP, CSS, HTML and JavaScript. I used it with C++ and Java before and I'm gonna use it with C# in the future - it's very nice and powerful editor -
hmm,this is not as comfortable as in 50p's app.. you can't click the error and get your caret moved into line with error.
