Jump to content

Mr.Hankey

Members
  • Posts

    625
  • Joined

  • Last visited

Everything posted by Mr.Hankey

  1. Mr.Hankey

    AVG vs MTA

    just look through the avg options somewhere there is a list for processes that avg ignores so it wont give you a warning
  2. Still doesn't work after 10 refreshes. You always get linked to the page http://www.multitheftauto.com/dllib/download.php that always ends up in a HTTP 404 Error
  3. You could also write everything in a server-side script without any lag at all =)
  4. If you already fixed that the fuel is refilling at every marker on the map just skip reading this post =) To avoid that refilling is triggered on every marker in the map you will have to change getRootElement () to either every specific marker element or to a parent element of the markers from the cvvehiclefuel resource. I changed the cvehiclefuel to this because i think the resource root element must be the parent of all marker elements that are created through the .map file but i have no idea if it works =) function onEnterRefillArea(player,sDimension) triggerClientEvent("onGasRefill",getRootElement(),true) end addEventHandler("onMarkerHit",getResourceRootElement(getThisResource()),onEnterRefillArea) function onExitRefillArea(playerplayer,sDimension) triggerClientEvent("onGasRefill",getRootElement(),false) end addEventHandler("onMarkerLeave",getResourceRootElement(getThisResource),onExitRefillArea) Edit: Maybe you can get directly the root element of the marker.map file by using this: function onEnterRefillArea(player,sDimension) triggerClientEvent("onGasRefill",getRootElement(),true) end addEventHandler("onMarkerHit",getResourceMapRootElement(getThisResource()),onEnterRefillArea) function onExitRefillArea(playerplayer,sDimension) triggerClientEvent("onGasRefill",getRootElement(),false) end addEventHandler("onMarkerLeave",getResourceMapRootElement(getThisResource()),onExitRefillArea)
  5. Um?! the event can't exist if the client hasn't downloaded the files completle because the .lua client script file where the event is added simply isn't complete on his pc.
  6. I can't see a bug in there. It's just logic that the event doesn't exist as long as the client script hasn't started
  7. I was opening a topic to ask the same thing... Peds will be only dummies with a stupid IA or will they be able to do something particular, i.e. attacking a specific player with a specific weapon? As you can find >>THIS<< function in the wiki i guess peds will be able to shoot =)
  8. Does that mean that you may be able to create bullet projectiles with createProjectile in future releases?
  9. 1.: Posssible with some scripting skills 2.: Already done have a look herer: viewtopic.php?f=91&t=21507&st=0&sk=t&sd=a&start=45
  10. Don't care about it there are some idiots around the resource center that rate every new resource with 1...
  11. Actually you can import custom .dff .txd and .col files so custom car and weapon skins/textures can be used in mta but you can't modify the speed of weapon firing rates and you can only increase/decrease the damage of weapons by scripting.
  12. lol i think you meant "...same in movies" because actually it's really really unrealistic that a car explodes instantly even on a huge car crash
  13. i experienced this problem too i think it has to do with testing scripts on a localhost server... Sometimes objects/elements just stay visible ingame though you clearly removed them in a function that worked 2 times correctly before and these objects don't exist in the script/element tree anymore.
  14. I have no idea what Matroska codec is but for me it looks like the background movie isnt a movie but a dynamic rendered scene because in the mta folder there are a lot of textures that are used in the scene.
  15. lol for me the FPS limit is 60 i think your hardware is just to weak
  16. Erm afaik the /me command is hardcoded into mta itself. There's no need to script it^^
  17. um what about reinstalling mtadm?! if there was no coreconfig something went seriously wrong
  18. just add the command server-side and then pass a variable to the clients to set if it's enabled or not. That wouldn't be so bandwidth cosuming =)
  19. if you just want this for a client side script you could use processLineOfSight or isLineOfSightFree to get the z height of the object under the car and then check if the difference on the z axis between the car position and the road is higher than GetElementDistanceFromCentreOfMassToBaseOfModel. Dunno if this would work it's just an idea =)
  20. ai scripts were already done in alpha builds just have a look here: viewtopic.php?f=91&t=22306 I already converted the AI script to the current script syntax and it works pretty fine. You can simply call a function of this script like createPlane with a few arguments like x, y, z, radius, speed, damage and it will create a little plane that follows and attacks you if you are in it's attacking radius =)
  21. "source" is always related to the event that calls the function. for example if you use triggerClientEvent ("test", source) in a function that is bound to a "onMarkerHit" event "source" would be a marker element^^ just specifie a certain player element e.g: function defAutobahn ( localPlayer ) local nombre = getElementData ( localPlayer "username" ) local theAccount = getAccount ( nombre ) setAccountData ( theAccount, "dc.consecionario", "autobahn" ) triggerClientEvent ( "esconCons", localPlayer ) triggerClientEvent ( "abrirConsAutobahn", localPlayer ) end addEvent ( "definirAutobahn", true ) addEventHandler ( "definirAutobahn", getRootElement(), defAutobahn ) and remember the function getLocalPlayer () returns a player element not the player name
  22. i can't answer your question but i would ban you for your gang declaration...
  23. hm... i thought you could just remove the gta clock with showPlayerHudComponent and make your own but when i finished my script everything seems to work perfect except that you cannot remove the gta clock for some reason...
  24. To check if the player is jailed i would recommend setElementData and getElementData that element data system helps alot with things like that.
  25. After you added a new resource to the resource folder you have to use the command /refresh or type refresh into the console. Then the server should recognize the new resources and you should see them in the admin panel
×
×
  • Create New...