Jump to content

Greenie0101

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Greenie0101

  1. no its a wierd one. I usually keep them on the first death, then lose on second death?
  2. Sorry if this was supposed to go to the 3rd party GTA mods page but i thought that was for showcaseing existing mods and not asking for a mod. Im looking for a pickup truck like this one which is used in fast and furious 4 to tow a fuel tank off a fuel truck. Any one know where i can get one?
  3. hi this is part of a gamemode script and i want to stop me from losing weapons on my death. i get an error saying bad argument @ giveWeapon function respawn() if getPlayerTeam(source) == LV then spawnPlayer(source, 2589, 2790, 11, 90, 0) end if getPlayerTeam(source) == LS then spawnPlayer(source, 1948, -2219, 15, 0, 0) end if getPlayerTeam(source) == SF then spawnPlayer(source, 2589, 2790, 11, 270, 0) end if getPlayerTeam(source) == false then spawnPlayer(source, 0, 0, 3, 270, 0) end setCameraTarget ( source, source ) fadeCamera(source, true, 5) wep0 = getPedWeapon ( source, 0 ) amo0 = getPedTotalAmmo ( source, 0) wep1 = getPedWeapon ( source, 1 ) amo1 = getPedTotalAmmo ( source, 1) wep2 = getPedWeapon ( source, 2 ) amo2 = getPedTotalAmmo ( source, 2) wep3 = getPedWeapon ( source, 3 ) amo3 = getPedTotalAmmo ( source, 3) wep4 = getPedWeapon ( source, 4 ) amo4 = getPedTotalAmmo ( source, 4) wep5 = getPedWeapon ( source, 5 ) amo5 = getPedTotalAmmo ( source, 5) wep6 = getPedWeapon ( source, 6 ) amo6 = getPedTotalAmmo ( source, 6) wep7 = getPedWeapon ( source, 7 ) amo7 = getPedTotalAmmo ( source, 7) wep8 = getPedWeapon ( source, 8 ) amo8 = getPedTotalAmmo ( source, -- s8) --> wep9 = getPedWeapon ( source, 9 ) amo9 = getPedTotalAmmo ( source, 9) wep10 = getPedWeapon ( source, 10 ) amo10 = getPedTotalAmmo ( source, 10) wep11 = getPedWeapon ( source, 11 ) amo11 = getPedTotalAmmo ( source, 11) end addEventHandler ( "onPlayerWasted", getRootElement(), respawn ) function spawnweps() giveWeapon ( source, wep0, amo0 ) giveWeapon ( source, wep1, amo1 ) giveWeapon ( source, wep2, amo2 ) giveWeapon ( source, wep3, amo3 ) giveWeapon ( source, wep4, amo4 ) giveWeapon ( source, wep5, amo5 ) giveWeapon ( source, wep6, amo6 ) giveWeapon ( source, wep7, amo7 ) giveWeapon ( source, wep8, amo8 ) giveWeapon ( source, wep9, amo9 ) giveWeapon ( source, wep10, amo10 ) giveWeapon ( source, wep11, amo11 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), spawnweps )
  4. about the car ,, i think you should use https://wiki.multitheftauto.com/wiki/Ser ... _functions and about health use https://wiki.multitheftauto.com/wiki/GetAccountData https://wiki.multitheftauto.com/wiki/SetAccountData im confused about the SQL_funcs. Explain plz
  5. Hi there guys/girls. Just asking if you could explain to me how i can make a system where a player buys a car and keeps it when they log in next time. And it still has the same health/mods. Please help!
  6. tried that so many times but i cant make it work. I mean by editing the locals C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch\resources\[gameplay] is the mod
  7. nah dont see how that works, i want it so that if im facing north my velocity will be x, y + 0.1, z. If im facing south it would be x, y - 0.1, z east would be x + 0.1 west x - 0.1 that part is easy but how can i calculate what it should be for all the stuff in between. For example if i face north east (45 degrees) it will be x + 0.1, y +0.1 z. But if im facing at 10 degrees for example, how can i make the script calculate what the x and y should be?
  8. I need help with this! I want to use setElementVelocity to make a ped go forwards (in the direction it is facing). How can I do this as setElementVelocity works along the x and y axis of the map and not the player.
  9. Their is a default resource in mta to make parachuting possible. Unfortunately, it is shit. I have edited it a bit but can't get the right settings. I want to make it so you track more when skydiving. If you don't know what tracking is it is where you glide forwards instead of dropping like a rock. Can someone help please?
  10. thanks mate,works fine now. I'll figure out something for cross hairs. If anyone can help me there though would be appreciated
  11. function firstPerson() rx,ry,rz = getElementRotation(localPlayer) screenX, screenY = guiGetScreenSize () x,y,z = getPedBonePosition(localPlayer, 7) showCursor(true, false) s1,s2,cx,cy,cz = getCursorPosition(localPlayer) setCameraMatrix(x,y,z,cx,cy,cz,ry,180) setPedLookAt(localPlayer,cx,cy,cz,-1) if s1>0.55 then setCursorPosition(screenX/2 + 20, screenY/2) end if s1<0.45 then setCursorPosition(screenX/2 - 20, screenY/2) end if s2>0.55 then setCursorPosition(screenX/2, screenY/2 + 20) end if s2<0.45 then setCursorPosition(screenX/2, screenY/2 - 20) end end addCommandHandler("fp", function() addEventHandler("onClientPreRender",root,firstPerson) end) this works but i need to make a function so i can go back to normal camera by typing /tp i also would like to know how to make the cross hairs appear when i right click
  12. i have got it to work now but its sketchy as! Instead of making an object ive just been using the cursors position. I think making an object would work much better, how do i do this though? (not the making the object, the making it move with the mouse) heres what ive got. function firstPerson() x,y,z = getPedBonePosition(localPlayer, 7) showCursor(true, false) s1,s2,cx,cy,cz = getCursorPosition(localPlayer) setCameraMatrix(x,y,z,cx,cy,cz) setPedLookAt(localPlayer,cx,cy,cz,-1) end addCommandHandler("fp", function() addEventHandler("onClientPreRender",root,firstPerson) end)
  13. awesome, that worked well. now i need to figure out how i can make the head turn with the mouse
  14. function firstPerson(player) x,y,z = getElementPosition(player) rx,ry,rz = getElementPosition(player) setCameraMatrix(player1,x,y,z + 1,rx + 1,ry,rz) resetTime = setTimer (firstPerson, 100, 0, player) end addCommandHandler("fp", firstPerson) Made this script to make a first person camera but i cant make the camera follow the player as the console has a seizure and gives me lots of errors. How to fix? Also after this ill have the problem of needing to move the players vision with the mouse. How can i make that work? And how to make it so that the camera is facing ahead of the player.
  15. i made this script and the idea is that you can make custom camera angles and save them to keys 1, 2, 3, 4, 5. Im making it so i can adjust all the parameters of setCameraMatrix including roll and FOV. But it, like all my scripts, doesn't work. I have no idea what is wrong with it but it just doesn't work. I've probs done something dumb. any help is appreciated. I havent done anything in the last 4 functions as i cant get the 1st to work anyway. function binds() x,y,z = getElementPosition(player) rx,ry,rz = getElementRotation(player) bindkey("1", "down", cam1) bindkey("2", "down", cam2) bindkey("3", "down", cam3) bindkey("4", "down", cam4) bindkey("5", "down", cam5) end addCommandHandler("test", binds) function cam1() setCameraMatrix(x,y,z,rx,ry,rz) end function cam2() end function cam3() end function cam4() end function cam5() end
  16. can you send it to [email protected]? thanks for the good luck, i have a cleo one and its so cool so im trying my best to make one for MTA
  17. none of them work : meta is <meta> <script src="parkour.lua" type="client"></script> </meta>
  18. nothing worked debugscript 3 said incorrect client type for this command
  19. hi i made my 1st client sided script today and i really struggle with them. This is it: function roll() x,y,z = getElementPosition(player) ground = getGroundPosition(x,y,z) outputChatBox(ground) setTimer(roll, 1000, 0) end addCommandHandler( "test", roll) its supposed to tell me what height the ground is when i type test and continue to tell me every second after. I have no warnings but it wont work. Why not?
  20. haha i never saw that, i was looking on the server side function list for ages, never thought of client. So now i can use getElementPosition to get the players x,y,z and getGroundPosition then say, if the GetGroundPosition is <10 then it will start a timer asking isPlayerOnGround untill he hits the ground then executes the roll command else he gets a message saying your going to die, and dies when he hits the floor. Thanks alot denny
  21. i know how to make the falling snow but i want it to pile up like this
  22. Ok, i want to make a resource that lets me roll when i fall less that 10 meters but if i fall more than that i die. I need to be able to make the script know what height the player is above the ground, not above sea level. I know this is possible as it is done in the mta default parachute script
  23. i want to script it, just need some tips
  24. this only gives flakes, i want pile up so there is a layer of snow on the floor
×
×
  • Create New...