Jump to content

bamby12

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by bamby12

  1. still get the same errors on line 9. and 10.
  2. Ok you got me this is the full code: function enterVehicle ( theVehicle, seat, jacked ) outputChatBox ( "You sit in the car and suddenly feel extremely drunk!", source ) cheesetime = setTimer(peds, 2000) --add effects after, this is what i tried to delete seeing as you dont need it. end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) function peds() local x, y, z = getElementPosition ( source ) local target = createPed(math.random(0,150), x+5, y, z) if not target then outputChatBox("Invalid player", player) end local x,y,z = getElementPosition(target) local tx,ty,tz = getElementPosition(player) setPedRotation(target, findRotation(x,y,tx,ty) ) end
  3. function enterVehicle ( theVehicle, seat, jacked ) outputChatBox ( "You sit in the car and suddenly feel extremely drunk!", source ) end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) function peds() local x, y, z = getElementPosition ( source ) local target = createPed(math.random(0,150), x+5, y, z) if not target then outputChatBox("Invalid player", player) end local x,y,z = getElementPosition(target) local tx,ty,tz = getElementPosition(player) setPedRotation(target, findRotation(x,y,tx,ty) ) end thats the full code.
  4. This should work, thanks. EDIT: ok im trying to createped with a timer and make the ped face the player, heres the code i used. function peds() local x, y, z = getElementPosition ( source ) local target = createPed(math.random(0,150), x+5, y, z) if not target then outputChatBox("Invalid player", player) end local x,y,z = getElementPosition(target) local tx,ty,tz = getElementPosition(player) setPedRotation(target, findRotation(x,y,tx,ty) ) end i get 2 errors, bad argument @ getelementposition and attempt to perform arithmetic on local 'x' a nil value any help appreciated guys.
  5. is it possible to make a ped face a player using setPedRotation? what im trying to do is make a ped spawn in front of a player then face him.
  6. Ok i don't know if its just me or I've missed something but this script wont spawn the player: function spawn (player) spawnPlayer (player, 0, 0, 5) fadeCamera (player, true) setCameraTarget (player, player) end addEventHandler("onPlayerConnect", getRootElement(), spawn) Any ideas guys?
  7. No Problem and im glad that you appreciate it. nice working with you
  8. Hi sorry the title is abit of a put off but i need to be clear, This hosting that i am offering is FREE and im not here to steal your scripts i am being serious about this and i say no roleplay because i am already hosting a roleplay server. Ok youll probbably want the computer specs. Your server will be running on an advent computer with windows 7. 2 dual quad core processors. 6gb ram. 1tb hardrive/700GB left. Any other specs just ask. You will have 24/7 FTP access to your server and Navicat access to MYSql if you need it. I don't want to be hosting unfinished/wank gamemodes that will be stuck on a 0 player count. You will have up to 128 player slots if needed and all ports will be forwarded by me as needed. There is only 1 slot available and whatever server i think will be the best to host will get it.
  9. hmm i made this but it dosnt work. if XP == 25 then setElementData ( attacker, "Level:", 2) outputChatBox ( attacker, "You Are Now Level 2!", 0,255,0) end if XP == 75 then setElementData ( attacker, "Level:", 3) outputChatBox ( attacker, "You Are Now Level 3!", 0,255,0) end if XP == 150 then setElementData ( attacker, "Level:", 4) outputChatBox ( attacker, "You Are Now Level 4!", 0,255,0) end if XP == 300 then setElementData ( attacker, "Level:", 5) outputChatBox ( attacker, "You Are Now Level 5!", 0,255,0) end if XP == 425 then setElementData ( attacker, "Level:", 6) outputChatBox ( attacker, "You Are Now Level 6!", 0,255,0) end if XP == 650 then setElementData ( attacker, "Level:", 7) outputChatBox ( attacker, "You Are Now Level 7!", 0,255,0) end
  10. I mean I want to show a players experience on the GUI using getElementData but I don't understand how to put it on a GUI.
  11. i know how to get and set element data but how would i go about putting it in a gui??
  12. I think he means how will he show the time that has past in the boxes not too sure if your trying to put the image on screen then i think you need to use: https://wiki.multitheftauto.com/wiki/Gui ... taticImage
  13. bamby12

    triggering

    i think we are on 1.4 now
  14. there is allready a cruise control script, here you go: https://community.multitheftauto.com/index.php?p= ... ils&id=989 and also the mta wiki to help you: https://wiki.multitheftauto.com/wiki/Scr ... troduction
  15. yeah i did that solidsnake and it didnt change for some reason maybe i changed the wrong one i dno i give up with this script, does anybody hove any good ideas for a server? please not roleplay lol
  16. hi does anybody know how to change the spawnpoint in mabako's paradise?? ive allready change the hospital respawn.
  17. yeah i thought the same but its not appearing (edit) Works now just appeard dont understand what the problem was, does anybody know how to change the spawn when a new character is created? i changed the hospital and the login spawn but cant find the other one.
  18. yeah you are right... but how do i get the ped in the city hall i have made the interior and what not?
  19. hi im trying out mabako's paradise script and does anybody know how to make the job gui show up???
  20. hmmm that didnt work at all now when i kill the player robbing the bank it still says that somebody is robbing
  21. is it possible to check things using if and then statements e,g function whatever if (something,from,account,or,element,data = 1) then blah else blah end if this is possible how can i set the account or element data??
  22. ive got another problem... i tried to make it so that when the player dies the timer will stop but it stop the timer when any player dies here it is: function death() killTimer( robbank ) end addEventHandler ( "onPlayerWasted", getRootElement(), death ) any good ideas???
  23. why dont you just put your mta in full screen?
×
×
  • Create New...