-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
As soon as I saw you post I made a simple script which may help you. Run you server and run this script. It will show your current position at the bottom of the screen. I did not add any commands, it just displays the co-ords. https://community.multitheftauto.com/index.php?p= ... ils&id=124
-
acl.xml is located in the same folder as mtaserver.conf and accounts.xml (...\server\mods\deathmatch) and you modify it, you don't create a new one (do you?).
-
Probably, but not yet.
-
Dancing and Basketball minigames currently are not doable because you can not animate players in dp2 and probably dp3 either...
-
Add another 'end' at the end because the function is not closed.
-
I haven't tried that, but maybe you can fix it using setPlayerStat function to make you game progress (PROGRESS_MADE, TOTAL_PROGRESS or CITIES_PASSED) 100% so the enter/exit problem may not occur because the game will think you passed the missions and you can use rails to other cities? Try it and reply here.
-
This section is for MTA:SA DM not the Race mod.
-
I haven't figured out how to fix the cameras when you join server, yet.
-
Server-side function selection( player ) setCameraPosition( ......) setTimer( setCameraLookAt, 100, 1, ....) end addCommandHandler( "test", selection )
-
You may spawn, but camera may not go there where you want. Try with a command and see if camera goes there. NOTE: If you have camera mode set to fixed and you will set it again to fixed it will be changed to "player" but getCameraMode is returns "fixed", that's a bug I think.
-
Yesterday, I discovered that if you use the camera functions after some time you join the server they work. Try to call seleccion function using command.
-
It has to be used in events. When you use it, it will stop player from entering...
-
Take a look on wiki (the link I posted above) and see how they're found whether they are the vehicles you don't want to be used. Just do the same in the command. 1st. check if the vehicle is in the table (which you have to create, shown in the example) 2nd. if the id is in the table, output text saying that vehicle is "banned" 3rd. if there is no id in the table, createVehicle...
-
I don't want to disappoint you... I've stopped developing it because I am quiet busy writing something else. Really sorry. If I'll decide to improve it I'm sure I'll post it here. In the mean time please post suggestions if you have any and I'll probably think of adding it.
-
The code's in the 1st post. Sometimes setTimers do help.
-
Camera functions are not working well. Some people say it works for them w/o any problems but some people say (inc. me) that they've got some issues. I've never managed to make them work, even using more timers. What do you see if you said you can't see yourself? My camera is somewhere in the middle of SA and it's facing East. Also, the camera's position is (I assume from what I see) 0, 0, 0.
-
What do you mean? Disallow entering specific model id? Just use use a table in which you store all the IDs of the vehicles and in onVehicleStartEnter, loop through the table checking if the vehicle (source) is equal to the one in the table. http://development.mtasa.com/index.php? ... StartEnter
-
You also must think of users with weaker PC, that barely run MTA.
-
I've never tried to use onClientRender event to load the images and maybe it doesn't take that much cpu. But anyway, I'd strongly recommend not to use large images (over 2kb) in scripts where tens or even hundreds of images need to be created.
-
Each file must not be heavier then 1kb. I made a speedometer with a needle which load 260 images each of them is ~2.2kb and it take long to load them all for the first time (may take 60 seconds, depends on your PC). While the game loads them all you can't even move camera, it just freezes you PC for the loading time. So maybe make them smaller then a kilo.
-
Use onPlayerWasted event http://development.mtasa.com/index.php? ... ayerWasted Make a function in which you: - take player's money & give killer money http://development.mtasa.com/index.php? ... layerMoney http://development.mtasa.com/index.php? ... layerMoney - add a kill point using setElementData http://development.mtasa.com/index.php? ... lementData - do a check if player's got 30 kills using getElementData http://development.mtasa.com/index.php? ... lementData
-
http://development.mtasa.com/index.php? ... andHandler Go down to the examples, click on Server (orange bar) and scroll down to example 4. There is how to use something like you want, I mean it joins all of the parameters from the command and outputs it into chatbox. You wouldn't use "Parameters passed: " you'd use getClientName( playerSource ) .. " "
-
If you really want to script, learning wouldn't be difficult especially if you already know some programming language.
-
I just quickly scrolled through the tutorial and I noticed only one change. In the tutorial setTimer and addEventHandler uses string to call a function, but now we can use functions itself, so that's the only difference I've noticed. You can try it. If it won't work, don't look at tutorials which say might be outdated, because you may not know what's different in older version and the newest (currently dp2) version.
-
You could create the colshape server-sided and send it to client using triggerClientEvent. It could be bandwidth consuming.
