
jkub
Members-
Posts
342 -
Joined
-
Last visited
Everything posted by jkub
-
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
-
I never thought of it like that, instead setelementposistion player thanks
-
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
-
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.
-
thanks the "" and taking out that comma made it work:) but do i have to have that getrootelement in order to make it serverside?
-
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,)
-
hey when i am doing this I always get debug erros that say somthing about "".... what does mean?
-
k thanks man, couldent of said it better
-
wats the difference between "setplayermoney" and "giveplayermoney"
-
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
-
ohh so thats why. thanks im gonna study this shit more and try to make more since of it>>>
-
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
-
hey the minigun script is ok but it is not serverside witch i figured out recently... how do i make it serverside?
-
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?
-
actually man this may sound ironic but i have actually been looking around. Ive looked at alot of things on the wiki lol.
-
thanks man that worked like a charm!
-
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.
-
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?
-
when I typed in the command it wouldent do anything? im gonna check the command handler
-
k im gonna try it agin.. hope it works
-
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 :
-
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!