Jump to content

jkub

Members
  • Posts

    342
  • Joined

  • Last visited

Everything posted by jkub

  1. jkub

    Script help

    ok I changed the marker posistion and teleport location and here is the current script wich works perfectly. createMarker ( 2417.1013183594, 1130.9943847656, 10.8203125, "cylinder", 2.5, 0, 255, 0, 175 ) function MarkerHit ( hitPlayer, matchingDimensio ) if getElementType(hitPlayer)=="player" then setElementPosition(hitPlayer,1827.4294433594,594.36029052734,51.134124755859) setPlayerRotation(hitPlayer,90) outputChatBox ( "Welcome to Dr.Philly Blunt's Projectz Island" ) end end addEventHandler("onMarkerHit", getRootElement (), MarkerHit) Since i got that I wanted to create another marker near the teleport location so i can return back to spawn wich is where my first marker is, here is the script for that wich doesent work, It does not show the marker but it is there and also when i go into it just teleports me back to the first telport location. and here is that script createMarker ( 1821.7373046875, 604.20440673828, 49.398349761963, "cylinder", 2.5, 0, 255, 0, 175 ) function MarkerHit ( hitPlayer, matchingDimensio ) if getElementType(hitPlayer)=="player" then setElementPosition(hitPlayer,2417.1013183594,1125.9943847656,10.8203125) setPlayerRotation(hitPlayer,90) outputChatBox ( "You have returned to the spawn" ) end end hmmm
  2. jkub

    Script help

    I never thought of it like that, instead setelementposistion player thanks
  3. jkub

    Script help

    hmm seems like a big step for me right now. maybe I should start smaller, instead if on marker hit it just teleports (spawnsplayer) in a posistion on the map that i specify. i have put toghether a script which has ran no debug errors on the luaeditor but probably will on the actual game and not work. I havent got to test it yet but here it is, ive pulled examples from the wiki and tryed altering them to my suit, youl probably find multiple errors lol createMarker ( 0, 0, 0, "cylinder", 3, 0, 255, 0, 175 ) visibleTo = getRootElement() function MarkerHit ( hitPlayer, matchingDimensio ) addEventHandler("onMarkerHit", getRootElement (), MarkerHit) players = getElementsByType ( "player" ) for playerKey, playerValue in ipairs(players) do spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) end end
  4. jkub

    Script help

    I got it to trigger outputchatbox succesfully but how would I make it to where it would fixvehicle, ive already tried the line and it keeps giving me a bad arguement line @ fixvehcile what am i doing wrong.
  5. jkub

    Script help

    thanks the "" and taking out that comma made it work:) but do i have to have that getrootelement in order to make it serverside?
  6. jkub

    Script help

    Im currently trying to do a simple createmarker script that spawns a read marker at 0 5 1 and I keep getting different debug errors here is the current script marker = createMarker (0, 5, 1, cylinder, 3, 255, 0, 0, 175,)
  7. jkub

    Script help

    hey when i am doing this I always get debug erros that say somthing about "".... what does mean?
  8. jkub

    Script help

    k thanks man, couldent of said it better
  9. jkub

    Script help

    wats the difference between "setplayermoney" and "giveplayermoney"
  10. jkub

    Script help

    ill do some more studying on this soon as i get home lol I used to do everything on notepad anyway, even switching to an actual lua editor helped a bit lol. how ironic
  11. jkub

    Script help

    ohh so thats why. thanks im gonna study this shit more and try to make more since of it>>>
  12. jkub

    Script help

    at first i got a mini myself to test it with others in the server and they said they didnt see the message. but later ithink i ended up fixed it. I took an outputchatbox function with a getelementroot thingy. the one b4 didnt have it. I dont know why that would make it server side but i tested the changed script and this time they said they did see it. so i guess it worked
  13. jkub

    Script help

    hey the minigun script is ok but it is not serverside witch i figured out recently... how do i make it serverside?
  14. jkub

    Script help

    what if i wanted to functions on the minigun pull out like have the warning message and a loss of health for the culprit, how would the 2 functions work in unison? wat command or function would join both functions together would it be and or also?
  15. jkub

    Script help

    actually man this may sound ironic but i have actually been looking around. Ive looked at alot of things on the wiki lol.
  16. jkub

    Script help

    thanks man that worked like a charm!
  17. jkub

    Script help

    Im sorry i didnt do this earlier, i dont wanna post multiple topics for single questions but can you also help me step by step on how to output a chat message alerting everyone when a player has pulled out a disallowed wepon such as a minigun? i would use both events and functions right and which function or event would I use to monitor players weapons and I know already that putting the outputchatbox command right after the getweaponline will not work because they have to be linked somehow.
  18. jkub

    Script help

    lol i have no idea
  19. jkub

    Script help

    I got the bank script from the resources page and I want to make it to where you can login to your own player account on my server and you can keep track of your bank account. like you can save your money to your account and when you come back the next day youl still be able to have the money you had the day b4... sort of like an rpg>> how would i do that?
  20. jkub

    countdown script

    when I typed in the command it wouldent do anything? im gonna check the command handler
  21. jkub

    countdown script

    k ill look some more...
  22. jkub

    countdown script

    nope dosent work?>>?
  23. jkub

    countdown script

    k im gonna try it agin.. hope it works
  24. jkub

    countdown script

    Hey ace i tried your script and i couldent get it to work. Ive looked at some stuff myself even though I dont much myself but thank you so much guys. Ive been lookin for this a while :
  25. Can someone please give me a countdown script... like one for a race. and the command to start it would be /count like 5 4 3 2 1 GO!
×
×
  • Create New...