-
Posts
1,449 -
Joined
-
Last visited
-
Days Won
32
Everything posted by DiSaMe
-
I tested it and I see where's the problem now. You didn't put the quotes where the name gets inserted. So this should work: local gname = executeSQLQuery("SELECT govName FROM Government_members WHERE name = '?'", nam)
-
Maybe the error is about column called 'name' which you wrote after WHERE?
-
Government_members is a database? AFAIK, it should be a table.
-
The script uses element data, so you need to get and set it on saving and loading. But some functions are attached to element data change events, so I don't know how stability will be affected. I will probably make functions for creating tags and getting information about them which could be called from other resources.
-
That function is wrong. Velocity is measured by GTA units per 1/50th of second. GTA unit is one metre. So speed in kph is velocity*180 and maximum infernus speed is 221 kph.
-
I think I could try making functions to read to and write from binary files efficiently because I need them too, but I have to do something else first.
-
Try this: executeCommandHandler("playpedrecord", getElementsByType("console")[1], 47, 1) executeCommandHandler makes MTA act in the way as if command was entered.
-
Or even better, attach it using bone attachments resource from here or here and it will move and rotate with the body part which it is attached to.
-
I think that's because it has collision which camera cannot go though. Try disabling the collision of object: setElementCollisionsEnabled
-
I don't have a list, but green spray effect appears continuously. You can test the effects yourself - create an object near yourself and you will see if particles keep coming out.
-
You can download particle objects resource from here or here. It has all (unless I've missed something) GTA SA particle effects. But you can't customize the colors, so it will be red. If you need green effect, you can try making your own with DX drawing functions.
-
Use timers. function someAnimation(ped) setPedAnimation(ped, "block1", "anim1") setTimer(setPedAnimation, 1000, 1, ped, "block2", "anim2") end
-
Maybe I will include those features in the future. And nice paintings, by the way
-
You were talking about vehicle element health and that includes any kind damage. Simple logic
-
You need particle effects. MTA has effects functions, but I don't know if that will help you, as there are few effects. For all effects, you can download particle objects resource from community site or my site. Particle effects are created with objects. There's no rotating particle effect, but the direction of some particles depends on rotation of object which created them, so you can create a few objects, put them in the circle and rotate them in such way that particles would go around the center of tornado.
-
Setting the parent of element doesn't do anything related to positions. You need this function: createBlipAttachedTo Get players in the team, cycle through them and create a blip for every player.
-
That's because a custom element isn't an object. Its element type is "grass" in your map, so it's an abstract element. It doesn't have any physical representation in GTA world. You would get the same result if you created it in this way: createElement("grass")
-
I think I could make it save the tags, but... not now
-
The only thing related to grass is the model under it. Grass is the part of the ground object which it grows on. It is generated automatically on surfaces. So you need to change the material of surface under it to prevent it from generating.
-
I thought it would be a good idea to make a website where I would put my MTA scripts. http://crystalmv.net84.net It currently includes: Airbrake Bone attachments Bytedata Drawtag Gravity gun Lava flood NPC high-level control (HLC) NPC HLC traffic NPC HLC traffic editor NPC task sequencer Particle objects Server collisions Sticky fishes Traffic light sequence
-
The grass is the part of surface below them. It's the part of model which it is on. I think you should have noticed they don't grow in air - only on certain models.
-
Player element and client are the same. When you trigger client event for specific client, you pass player element as the first argument.
-
Use map editor to get it. I'm not sure if MTA map editor will help you. If it doesn't, try MEd.
-
I'd advise you to use element data. It's synced automatically by default, so you can set it on one client and all other clients will be able to see the changes and react to them. setElementData getElementData onClientElementDataChange When the key is pressed or released, use setElementData to change the data, such as: setElementData(ped, "shooting", keyState) And when element data of ped changes, set control state to whatever getElementData returns: local ctrlstate = getElementData(source, "shooting")
-
Did you ever play GTA San Andreas? When your car gets damaged, fume appears, doors fall... Yes, I did. And did you? I shot the car with M4 until black smoke appeared and doors still weren't damaged at all.