Jump to content

Tunner

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by Tunner

  1. Hello there, Id like to have something like "If player hits marker1, destroy object1" "If player hits marker2, destroy object2" - but in one function. Something like "if player hits markerX, destroy objectX" where X is a number that the system has to check and then destroy the apropriate object (with the same number). Without this function the code will be HUGE (even more than it is now ). Thanks in advance
  2. This one works great. I would swear that I also tried localPlayer before, but well, at least it works this time. Dunno what I did wrong the last time I used it. Anyway, thanks man. BTW, how come that source of command isnt player? It works like that in my other resources.
  3. After succeeding to create working weapons yesterday, im now in trouble again. When I try to attach weapons to player, it doesnt work. Tried making it local/global, clientside/clientside + serverside, but still nothing. function weaponAttach ( commandName ) weapon3 = createWeapon ( "M4",0,0,0 ) weapon4 = createWeapon ( "M4",0,0,0 ) attachElements ( weapon3, source, 5, 0, 0 ) attachElements ( weapon4, source, 0, 5, 0 ) end addCommandHandler( "attachweapons", weaponAttach )
  4. Excellent! Thank you very much guys. I updated to the very newest version of MTA and it worked. Well, I had to add after updating it to the meta to make it start (which is weird) but it works now. Thanks again.
  5. Thanks for the fast reply. It was clientside alright, but I didnt have the "M4" thing. So I changed it, but it sitll doesnt work. Ive got the latest nightly (the one MTA kept annyoing with when i ran it). In the console it says it is 1.3.0 r4550, so I guess ill need to update to make it work.
  6. So I use this script and I got error: attempt to call global "createWeapon" (a nil value). Changing "weapon =" to "local weapon =" doesnt help, changing m4 to 21 doesnt help either. anyone got a clue? function crtwpn() weapon = createWeapon ( M4, 25.5, 1523.0930908203, 12.705202865601 ) end addCommandHandler ( "weapon", crtwpn) THX
  7. Im definitely for it! Bypassing this by setting gamespeed doesn't look very good nor realistic.
  8. Tunner

    MTA United

    Cool, thanks. I hope it gets implemented.
  9. Tunner

    MTA United

    Hey there, the search thingy doesnt want me to search anything so I dont know if this has been posted before, but lets get to the point. As some of you know, there is a GTA total conversion called GTA United (http://www.moddb.com/mods/gta-united), which brings back Vice city and Liberty city (both in 1 map). So far, the only working multiplayer mods with it have been GTA Rumble (very outdated) and a special version of SA-MP (with mostly empty, locked or little populated servers). Since MTA is technically better than SA-MP, Id like to see MTA supporting the GTA United mod, or (because of compatibility issues) a special version of MTA designed specifically for it. I am convinced that If MTA supported GTA United, more players would be playing it and also they would have more fun because of the MTA's infinite possibilities. It would also open new possibilities of expansion for the server owners without having them change a single thing in their code. I think it would be possible, and with MTA being open-source, even easy to make.
  10. Now i have made the teams in the same resource as my bot script, but it still doesnt work. It worked perfectly before so i dont know whats wrong with it. Maybe it has something to do with the eror slothbot/sbclient 114 attempt to compare boolean with a number. Can somebody tell me whats wrong in the sbclient script? Im convinced this is the cause of the faulty team recognition.
  11. It looks like just another way of expressing a team name to me, but ill give it a shot. EDIT: Yep I was right, it still doesnt work. Thanks for the try though. Just to make sure everythings right, heres the code: function Spawnsoldier () local x,y,z = 16.8071,1500.2646,12.75 local rot=0 local skin=287 local interior=0 local dimension= 0 local team= getTeamFromName ( "Team" ) local weapon=29 local mode=guard local modesubject= getElementPosition(source) call (getResourceFromName("slothbot"), "spawnBot", 16.8071,1500.2646,12.75, rot, skin, interior, dimension, team, weapon, mode, modesubject)
  12. function Spawnsoldier () local x,y,z = 16.8071,1500.2646,12.75 local rot=0 local skin=287 local interior=0 local dimension= 0 local team=Team local weapon=29 local mode=guard local modesubject= getElementPosition(source) call (getResourceFromName("slothbot"), "spawnBot", 16.8071,1500.2646,12.75, rot, skin, interior, dimension, team, weapon, mode, modesubject) the teams are set in different resource but i made sure to run the team resource before the bot. Bad thing is, that I cant set the teams in the bot resource as I need the teams to work regardless the bot resource.
  13. Sorry to say this, but even after the update my bots still kill everyone regardless the team.
  14. Cause he is obviously a mapper that doesnt know how to script and so he cant do it himself. Why would he ask then? Anyway, removing world objects is really pain in the ass now . I hope the next MTA version will have this implemented in the editor. Making in-game world object remover wouldnt be any problem if there was a way how to detect a LOD attached to objects and automatically remove it with them.
  15. sure, here you are: ERROR slothbot/sbclient.lua:1109:attempt to compare boolean with number This error totally floods the debug.
  16. Thanks for the bug fix slothman. But debugscript is still spamming me with red error messages. About comparing bolean with numbers and such.
  17. is it just me or the script is bugged? every time i fire the time slows down which is annyoing. If it is a feature then how can I turn it off?
  18. Tunner

    setWeaponProperty bug

    1.2, the newest build. Anyway, I dont think its only my problem. Just try it for yourself and see. If you try to modify any melee weap, console will tell you "invalid argument @ setWeaponPeroperty.......".
  19. As bug tracker doesnt seem to work for me (i cant report bugs even though im logged in), ill report it here. setWeaponProperty doesnt work with melee weapons.
  20. Maybe try saying this to the zombie server owners/scripters. they might like the idea.
  21. 1. its not my script 2. i cant script so well anyway i want to get this topic back to the top so this epic resource gets some attention again. I think it should be further developed and not abandoned.
  22. heloooooo. could someone plz fix this resource?
×
×
  • Create New...