DarkLink
Members-
Posts
610 -
Joined
-
Last visited
Everything posted by DarkLink
-
Hi there guys, I have one question in mind . Does server scripts manage concurrency ? Example, on server script there is a var like x = 2 I mean, two client at the same time try to acess a function on a server side script and both try to decrement that var, it would like x = 0 if server manage concurrency like a locks on java. But if server doesnt support concurrency on blocks, and they try to decrement x at the same time, it will appear x = 1, caused by a dirty read. My question is, how this works on MTA ? I am out of MTA for a few months, and when we came back to Lua coming from Java its kinda weird x) Thanks alot in advance.
-
I like your idea, maybe this could be very well constructed. with many garages for each user, depending on their race rank and such.. I still have a project under development, but I could help you mate
-
No no guys! Its not END! I made for myself a promise that I would do this gamemode! Alone or with someone! Doesnt matter how, I will do it! I am just very busy now, working with java Believe me guys, this is one of many wishes I have. Thanks for your interest guys
-
Ye jacob congratz, thats what happens when we put our effort on what we do! Congratz again you deserve it Keep up the good work, community needs it !
-
You made it, this is awesome! Good job bro, wont u make it for 1.1?
-
This is very nice for roleplaying servers By the way I have one suggestion for the creator: Instead of using markers for the parking spot, why dont u use colshapes? I mean square colshapes.. you make each one for each parking spot, u see? That would make it more real, you dont need to be inside a marker Just in the spot of the parking I hope u understand, good luck
-
Hm okay thanks jacob, but I guess is not false, is nil instead. for delete animation from ped Thanks
-
1.1 qaisjp, but I will test later, when I have more things added. by the way, I made a few progress last days guys This is almost playable, I just need to do the following before a good test: - Spectate Mode - Edit the current money system, need the GUIs for chiefs. I was wrong when I said I would end this about august start, seems that will be a delay I will go on vacation too, and I dont want to release it with bugs and with just a few features.. I prefer to take two week more and fix everything and implement the last features Thanks jacob for using ur cuff system I am near the finish line finally +.+ It has been a nice learning while I script ^^
-
Ye thanks alot jacob, made it work with setCameraMatrix then killPed And fadeCamera too , makes better visual hehe Thanks!
-
Yes, but look after I spawn a player I cant revert that situation? When you enter a server if spawnplayer its not called, you will just see black and there wont be any ped of him, even if camera is target to that player .. So what I want is to go back, revert what spawnplayer function did I think I explained better now It must be a way to do this. Thanks guys.
-
Okay so I am using spawnplayer to really spawn the players, actually it makes a ped for each player and spawn him at x,y,z coordinates right? Okay now I want to delete all the peds associated to the players, you see? How can I do that? Wanna delete all the peds that were created using spawnplayer, did u understand guys? Thanks alot.
-
Ahh I thats nice, I guess I understanted your code. You changed the real function setPedAnimation to _setPedAnimation, and then you can your costum setPedAnimation function with time argument fixed right? But I can just make a timer with 5 seconds and change animation to nil, I guess its easier But thanks alot, and I think I understand u
-
Ahhhh ! I understanded now will Thanks alot guys both. Thats a bug that needs to get fixed, wont be such difficult I guess Cya
-
Yes I know that I can do that, but its also possible with time argument of setPedAnimation doesnt it ? It says on wiki this about the time argument: time: how long the animation will run for in milliseconds. So why is not working for me? Thanks for your help
-
Hey guys I am trying to do a ped animation for only a few seconds , but seems that isnt working the time argument ? okay so I made this: setPedAnimation(source , "ped", "handsup", 5000, false, false, false, false) But after the 5 seconds the ped have the same animation I could make a timer, and set animation to nil after those 5 seconds, but the time argument on function setPedAnimation should work right? By the way, while the ped is on the animation he can move on a 360 degres circle using W,S,A,D . Is there a way to freeze him with the animation without using setPedFrozen? Thanks alot guys. Cya.
-
On the second option he wont enter, and also u play stopFollow function to him right? And the cuffed guy becomes "free" right? Thanks alot jacob
-
Hey jacob I have two questions about your police scripts Okay first one: If there is a player cuffed to a police, and that police enter a car as passenger (using G key) what happens? The cuffed guy will enter the car also? Second question: Imagine a car with only two seats, if a there is a player cuffed to a police, and that police enter as passenger (using also G key) what happens? the cuffed guy enter car to the driving seat? Thanks alot Cya bro.
-
Ahh there is a bug like I though Thats just what I was asking if there was a bug, or it was a problem with my script Okay so thanks alot, I think I know how I will do this, I mean recreating destroyed objects Thanks all, crystal and wojak 5* guys
-
Thanks bro, I know that I dont need this type of block , but I would like to know why I cant see the line in some angles-- sometimes the line goes off. Maybe because markers? what do u mean ? I am not entering markers Thanks.
-
Hey crystal thanks alot for your help, I made today a utility function to draw the line 3d that u said, but seems that there is some bug with that. After I draw the line, even with onClientRender, sometimes I dont see the line, if I look around with mouse, in some angles the line goes off.. some seconds after it comes back sometimes need to change the camera a bit too. Is this normal? Here is my functions: Everything client side function makeLineAppear(command, vx, vy, vz) x, y, z = tonumber(vx), tonumber(vy), tonumber(vz) addEventHandler("onClientRender", getRootElement(), createLine) end function createLine () xN, yN, zN = getElementPosition(getLocalPlayer()) dxDrawLine3D ( xN, yN, zN + 1, xN + x, yN + y, zN + 1 + z, 0xFFFF0000, 3, true, 0 ) end addCommandHandler("draw", makeLineAppear) Thanks alot in advance and please tell me if this is normal or not, thanks again
-
Hm okay, 5 offset on X and Y is okay?
-
Ye true, but what I wanted was to see the bar filling with less difference from each fill, dont know if you understand But nevermind, its okay this way, I will keep 1 Thanks
-
yes its working with +1, it says on wiki that can be a float from 0 to 100, I though I could use 0.5 . but seems not Okay I will use 1, thanks castillo
-
Hmm I think I get it, you mean something like this: local x,y,z = getElementPosition(object) local x2, y2 = x - 5, y-5 if(isLineOfSightClear(x,y,z,x2,y2,z)) then rebuild item -- because line of sight is clear, means its on destroyed state end my only doubt is about the offset, you mean a little far from the object so I can make a ray right? Thanks
-
Okay guys I am trying to fill a progress bar 0.5 each 900ms, so for 1800ms would fill 1% of the bar right? The problem is that the bar doesnt even fill.. maybe because just work for more than 1% ? Here is my function: function encheBarra(thehouseColShape) fillingHoldBar = setTimer(function(thehouseColShape) if(guiProgressBarGetProgress(holdBar)==100) then sayTextBig() elseif(getElementData(thehouseColShape,"holding",false)==false) then deleteBar() end outputChatBox("hei") guiProgressBarSetProgress (holdBar, guiProgressBarGetProgress(holdBar) + 0.5 ) end, 900, 201, thehouseColShape) end Thanks alot in advance
