Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You are posting a fraction of script that doesn't fit at all with your errors.
  2. Obviously not, you are using "onMarkerHit" which is a server side event. Also, you have other problems in that client side script, such as "setPlayerTeam" which is a server side only function.
  3. Maybe your account data names ain't "kills" and "deaths"?
  4. Eso solo crea una columna en la scoreboard, el script para guardar el tiempo lo tenes que crear vos.
  5. https://bugs.multitheftauto.com/changel ... ion_id=161
  6. I suggest you to make a table with them, then loop the table and create gates and colshapes.
  7. function getSQLData ( element, db, row ) local db = executeSQLQuery ( "SELECT * FROM ? WHERE name = ?", db, getPlayerName ( element ) ) if ( db and #db == 1 ) then return db [ 1 ] [ row ] end end Try that one instead.
  8. What gang system are you using?
  9. outputChatBox ("[CORE] *You have to be at least level "..unpack(autos[getElementModel(source)]), player, 255, 100, 100, false) You are using "autos" table name, but your table name is "cars", change that line into: outputChatBox ( "[CORE] *You have to be at least level ".. tostring ( cars [ model ] ), player, 255, 100, 100, false )
  10. I can't seem to find the part that makes you think they are idiots.
  11. SQLite by default has a column called "rowid", you don't have to create another column to store the ID.
  12. Copy the code again, I had forgot an 'end'.
  13. I don't understand what do you mean.
  14. col = createColTube (110.199, 1757.300, 17, 20, 3) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. door = createObject ( 980, 110.299, 1756.400, 19.399, 0, 0, 90) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open ( pla ) if ( getElementType ( pla ) == "player" ) then local team = getPlayerTeam ( pla ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == "Military" ) then moveObject ( door, 2200, 110.299, 1756.400, 25.5 ) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) function Close ( pla ) if ( getElementType ( pla ) == "player" ) then local team = getPlayerTeam ( pla ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == "Military" ) then moveObject ( door, 2951, 110.299, 1756.400, 19.399 ) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. end end end addEventHandler ( "onColShapeLeave", col, Close )
  15. To hide it simple use guiSetVisible after the GUI is created. And to hide/show with a key use: bindKey guiGetVisible guiSetVisible
  16. You are talking about SQL/MySQL?
  17. One of these variables: x, y, z, xL, yL, zL is returning nil, debug the script to find out which.
  18. That script should respawn vehicles when they blow up. I don't see anything wrong with it.
  19. Castillo

    Race times

    The deathlist is enabled by default, I'm not sure if you can actually disable it.
  20. You are already doing it here? local x, y, z, rx, ry, rz = unpack ( VarX [ readyPlayers ] )
  21. What you are trying to do is not going to work, make your table this format: vehicles = { [ 1 ] = { [1]={ 2902.6318359375, -2043.0684814453, 3.208420753479, 0, 0, 270 }, [2]={ 2902.5588378906, -2046.3167724609, 3.208420753479, 0, 0, 270 }, [3]={ 2902.4799804688, -2049.8156738281, 3.208420753479, 0, 0, 270 }, [4]={ 2902.4121093755, -2052.8154296875, 3.208420753479, 0, 0, 270 }, [5]={ 2902.3391113281, -2056.0654296875, 3.208420753479, 0, 0, 270 } } } Then change this: VarX = ("Vehicles"..vMap) Into: VarX = vehicles [ vMap ]
  22. VarX = ("Vehicles"..vMap) That's obviously not a table.
×
×
  • Create New...