Jump to content

Jumba'

Members
  • Posts

    254
  • Joined

  • Last visited

Everything posted by Jumba'

  1. I'll try and see, i think that may be it.
  2. is that right? and also, how would i go about running this on the server to test, like, is that the only stuff to go in the .lua file? or is more code neded or what? only that, but it doesn't work, i got a stack overflow error (line 2). No idea what that is.
  3. i did what you said and I got a stack overflow error function setTime() local realTime = getRealTime() local hour = realTime.hour local minute = realTime.minute setTime( hour , minute ) end setTimer ( setTime, 500, 0 ) btw dn68, the wiki says this This example outputs local time (server or client, where ever it was triggered) as hours and minutes so i think that getRealTime gets local time if run clientside
  4. Jumba'

    button D:

    But what's the problem? you have to explain more, the button doesn't appear, or it doesnt show the text in the textbox, what? =/ btw, what's the ) at the end supposed to mean?
  5. oh no, sorry, I understood your question wrong, i thought you wanted to show the server time, I have no idea how to do what you want, Sorry.. maybe you can check the setGameSpeed function and see if you can make 1 minute take 60 seconds, not sure how though.
  6. The maximum is 255, so that leaves 256 Cloudy the maximum ammount of dimensions is 255? I thought it was 65535
  7. This is copied directly from the dev wiki with a few tweaks. more info here http://development.mtasa.com/index.php? ... etRealTime function showtime () local time = getRealTime() local hours = time.hour local minutes = time.minute outputChatBox ( "Server Time: "..hours..":"..minutes ) end addCommandHandler( "time", showtime )
  8. Just make the maps in lua, it's not that hard.
  9. http://development.mtasa.com/index.php? ... ial_number
  10. a 5.3 ghz dual core? jebus, is it water cooled or something? btw, i doubt its you ram that makes you lag cause i run mta on my laptop which is 1.73 ghz and 512mb of ram with a 128mb ati. and it runs with no problem .
  11. I've been trying to add some vehicles for a map but all the vehicles sink in the ground a bit. So i raised the y value with one but then they got stuck in the air. Whats the best way to get the coords for vehicle locations? cause i cant figure out how to make them spawn perfectly. (i got the coords while driving in a banshee btw)
  12. Here, do this Open Notepad, and put this in the file replace "XXXX-XXXX-XXXX-XXXX" with your serial number. (this you get when you login with your account at mtabeta.com) And Replace John with YOUR username you login with at mtabeta.com save the file as key.reg <-- and double click the file. then click "Yes" and done.. it should work =)
  13. Did you try and click the left mouse button?
  14. If you want it to choose the new random player when the one dies shouldn't it be function lamahunt ( player, command ) local Player = getRandomPlayer ( ) local myBlip = createBlipAttachedTo ( Player, 23 ) setPlayerWantedLevel ( Player, 6 ) outputChatBox( "You're the lama run!" , Player ) end function playerDied( killer, killerWeapon, bodypart) outputChatBox(getClientName(source).." The Lama died!") end addEventHandler ( "onPlayerWasted", getRootElement(), lamahunt ) addEventHandler ( "onPlayerWasted", getRootElement(), playerDied ) but I'm not sure about that. Altho, with the event onPlayerWasted attached to getRootElement() wouldn't it say the message and choose another player when anyone dies? you have to make it so it only changes when the lama dies = /
  15. Download it apart? here http://www.gonnaplay.com/fileInfo.php?g=201&f=24
  16. er, maybe "for theKey,theVehicle in ipairs(cars) do" should be "for theKey, theVehicle in ipairs(cars) do" (space after comma). I dunno though, looks like it should work = /
  17. They do use te 255RGB scale, but i think vehicle colors are set by gta, but i dunno, here's the lsit tho = / http://development.mtasa.com/index.php? ... hicleColor
  18. Uhm, this isn't really about the problem but rand1 is a random color right? but arent car colors codes between 0 and 126? or is it something else... (im just wondering)
  19. Which function can I use to check and see if there's a mode running?
  20. I think he meant like if you join once with the nick Jumba and you leave and rejoin with Jum the script will say "Jum previously joined as Jumba" Altho, doesnt GRS have one of these? edit try this viewtopic.php?f=30&t=15552 Looks like there's some !alias command.
  21. Yea, I tried using call but I couldn't get it to work. To get executeCommandHandler to work i added it to the acl, but im just trying to figure out why it starts the vote even if the map is loaded. that's the biggest problem now.
  22. yea, i thought aout that so I changed it from getMapType to getGameType which should detect a gamemode.
  23. Ok, so I made a script to start a map vote on join if there's no map and it works, but it also starts a vote when there IS a map loaded. here's the script. function startVote( ) local joinedPlayerName = getClientName ( source ) local mode = getGameType () if( mode == nil ) then executeCommandHandler ( "votemode", source ) outputChatBox ( "Welcome to the server" .. joinedPlayerName .. ". There's currently no map running so choose one. " , source, 255, 255, 0 ) end end addEventHandler ( "onPlayerJoin", getRootElement(), startVote ) -edit- i think it always starts the vote because it told me that mode was nil even thought i was running fallout. any idea what could be causing this?
  24. post the changed script.
  25. Does it matter if you put getRootElement? it'll show it to all players as long as you remove playerSource right?
×
×
  • Create New...