-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
-- before you read this comments, scroll down and look BELOW this function -- hitElement is element that hit the marker. it can be player, but also empty vehicle, or any other element. function sls(hitElement, matchingDimension) -- we don't want to teleport emty vehicles etc, so we are checking what hit the marker if getElementType(hitElement)=="player" then -- if the element that hit marker is type of player (notice: players car are hitting this marker almost in same time, but to avoid teleporting empty cars - we are checking if player (driving, or not) hit element - and we are teleporting him and his car (if he is driving)) local veh = getPedOccupiedVehicle(hitElement) if (veh) then -- if player was driving setElementPosition(veh, 0, 0, 0) -- we are teleporting his car - player will be moved with it -- remember to fill the zeros with position else setElementPosition(hitElement, 0, 0, 0) -- we are moving player end end end -- first you need to createMarker local myMarker = createMarker(some,parameters) -- then attach and event (onMarkerHit) handler to this marker addEventHandler("onMarkerHit", myMarker, sls) -- 2nd parameter is element that will react and fire sls function -- we can put this one marker, or getRootElement() - but all markers will be teleporting and we don't want it. you can add velocity reset and outputChatBox by yourself
-
I'm bad in math and trigonometry, so I'm asking you to help. I have three 2D points (A, B and C). How to count the angle ABC theyre creating?
-
Fabio edited his post. Link he posted: viewtopic.php?f=91&t=28987&p=320104&hilit=teleport+vehicle#p320104
-
i don't get the idea of syncers, but i thought one of players should be syncer of the vehicle, so server should get its position.. but im not sure how it really works. in no players are around - you cant get its position for sure
-
Little help (gas stations, useful objects,ppl for beta-test)
dzek (varez) replied to dzek (varez)'s question in Client
You can't until i make something that actually can be played -
these functions are exported functions. you can't just call them this way! i have never used exported functions but probably you need to use this: local something = call(getResourceFromName("bank"), "getBankAccountBalance", source) -- remember - source is player element or account name
-
This is very short snipped, of course you can use it, you can't do it in any other way anyway, but for admins you will have to add some extra code.
-
useful site: http://downforeveryoneorjustme.com/wiki.multitheftauto.com
-
WTF??!! It's SOOOO random
-
can you draw it? or explain - if you are using both routers at the same time. im not sure if i understand you, but it looks like you are bought new router, and plug new one directly to the internet cable, and into this new router you have plugged tv and old router. am i right?
-
If You never used something like this-it can looks useless to you. But it's really great feature
-
Your Topic was about something else .. I suggest you to remove editor_dump folder, should do the job.of course don't forget about backup copy
-
You Can't do it with map editor. Map editor, as name suggests, is thing for creating maps. sounds can be added via scripting. It's nothing very hard, especially if you only want to put some sound in the map. Go to https://wiki.multitheftauto.com/ and check Scripting box
-
No no no no no.... You just don't know what are you doing, are you? Read that damn tutorial (i think I've already gave you the direct link if not - wiki.multitheftauto.com - Scripting box) because I'm pretty sure you have never done it. And you simply CAN'T learn something without learning. and we cant transfer that knowledge into your brain. Even asking a thousands questions here is useless without even basic idea about programming.
-
I Hate when i have to quite myself again, because some ignorant is ignoring my answer to his problems...
-
Looks like much ppl are having troubles with it. Are you using more than one router btw? The best thing you can do with thing that is not working properly it's to throw it away, our just return to place from where you got it. We'll try to help you but well, some craps are just not working.
-
You Have few resources running that are adding colors to players chat messages our such things. Freeroam resource and Cannonballs user system are doing that, don't know more. I've already replied to such question yesterday in Scripting subforum - check it. Also it will be useful if you can list all the resources running in your server
-
if you add that skin and edit script - it should work. just be sure not to edit scripts from resources cache or from client, but on server from this folder %mta installation path%/server/mods/deathmatch/resources/ not from: %mta installation path%/mods/deathmatch/resources/
-
open admin panel, go to resources tab, select freeroam, then configure. there will be option to disable this map to pop up every death
-
Solid, check my replies - ive already add "protection" not to send boolean/nil, but zero. also check what debug is displaying..
-
Your shop window is called shopWindow and you put just shop in showing/hiding function ..
-
There is no such tutorial, but it's east when you already know lua. Just check wiki page for race resource, find events and just add handler function giving money. If you don't know lua-better start with general tutorial
-
Little help (gas stations, useful objects,ppl for beta-test)
dzek (varez) replied to dzek (varez)'s question in Client
Well i don't get you idea:p when i was saying about ideas i meant general placement etc of objects, not about idea for gamemode - because I've already got one About testing - i meant to join testing server, play for a while, talk about bugs and suggestions. It's not possible to check everything alone because gamemode needs more than one player -
Os? Try to install mta not to program files but to something like c:\mta
