Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. By automatic you mean when you get close to the gate? if so, you can use colshapes: https://wiki.multitheftauto.com/wiki/Se ... _functions
  2. Castillo

    Trem help

    Trains can't have trailers as far as I know. If I recall correctly, there's a bug report about this on the MTA bug tracker, so you'll have to wait until it gets fixed.
  3. onVehicleExplode has no arguments, if you are trying to make so when a player pushes another/destroys on race, then you'll have to do something more complex, as this won't work.
  4. Castillo

    How to do ?

    What's the problem of using the "both" state?
  5. SknGrid = {{"CJ",0},{"Truth",1},{"Maccer",2},{"Andre",3},{"Bbthin",4},} ListaDeSkins = guiCreateGridList(12, 25, 191, 276, false,vn) guiGridListAddColumn(ListaDeSkins, "Nombre", 0.3) guiGridListAddColumn(ListaDeSkins, "ID", 0.5) guiSetAlpha(ListaDeSkins, 0.86) for i, SknS in ipairs (SknGrid) do row = guiGridListAddRow (ListaDeSkins) guiGridListSetItemText (ListaDeSkins, row, 1, tostring(SknS[1]), false, false) guiGridListSetItemText (ListaDeSkins, row, 2, tostring(SknS[2]), false, false) end
  6. Castillo

    Help!

    We don't give support with leaked scripts. Topic locked.
  7. Cambia 'theplayer' por 'hitElement'.
  8. Well, I had to search that one manually, so you'll have to do the same.
  9. Use this: removeWorldModel ( 8311, 10, 1276.8000488281, 1206.5, 13 ) Not sure if it'll work.
  10. Yeah, it seems like it can't be removed using the editor, you'll have to find the object model and do it manually.
  11. Of what gate are you talking about?
  12. Castillo

    SQL

    Use: executeSQLQuery
  13. Are you sure that it doesn't work? here it went to the other line.
  14. This script was stolen. Topic locked.
  15. vehicle1 = createVehicle ( 602, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272 ) -----this car can be found at LS Grove Street near PoolBar vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( player, seat, jacked ) if ( source == vehicle1 ) then local playerTeam = getPlayerTeam ( player ) local oldTeamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if ( oldTeamName ~= "admin" ) then cancelEvent ( ) outputChatBox ( "This vehicle is locked for following team: admin ", player, 255, 0, 0, false ) else outputChatBox ( "Welcome to your vehicle,Sir!", player, 0, 255, 0, false ) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) -----Made by Alen141(ingame name:Jimboy)------ -----Special thanks to : Solidsnake14(ingame name:Castillo)----- -----Visit SAUR Utopia RPG, IP: 128.204.203.103:22003----- -----Feel free to edit script on your own----- -----Don't remove credits-----
  16. What errors are you getting now?
  17. Post the dxDrawText line you're using.
  18. You only changed that? because it doesn't seem like that.
  19. I don't think that the script is yours, as it says "UIP" all over. Also, if you had made it, then you would know that the script is not giving another destination after finish.
  20. Are you using the colorCoded argument? Wiki quote:
  21. local playerTeam = getPlayerTeam ( source ) Change 'source' to 'player'.
  22. Castillo

    SQL

    You mean SQLite or MySQL?
×
×
  • Create New...