Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. I suggest using Notepad++, is that lua editor from MTA it self?
  2. no, like this: local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. addEvent( "qd4", true ) addEventHandler( "qd4", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) local x,y,z = unpack(table[math.random(#table)]) if name == "ElMota[Gold]~x" then setElementPosition ( source,x,y,z ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition ( source, x,y,z) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end)
  3. try these: Resource:Mapcycler Resource:Mapmanager
  4. You have addEventHandler("onResourceStart",Vehiculocrear) Which triggers nothing... EDIT: parameters = unpack(Table) in your case, you use: x,y,z = unpack(Table[math.random(#Table)]) try this: addEvent( "qd2", true ) addEventHandler( "qd2", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end) local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. addEvent( "qd4", true ) addEventHandler( "qd4", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition ( source, table[ math.random ( #table ) ] ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) x,y,z = unpack(table[math.random(#table)]) setElementPosition ( source, x,y,z) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end) addEventHandler("onResourceStart",resourceRoot,Vehiculocrear) addEvent( "qd3", true ) addEventHandler( "qd3", root,function() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end)
  5. Sorry, What lua editor are you using?
  6. Did you guyz know it's about BriGhtX3, not about ElMota... BriGhtx3, check your script, it looks fine and karthik184 said he looked at it.
  7. but you can call the logOut() when the player leaves/quits.
  8. Jaysds1

    MTA

    Delete your gta_sa.set located in your GTA San Andreas User Files(My Document\GTA San Andreas User Files)
  9. Jaysds1

    Need Help

    So, basically you want a garage spawner? but instead it shows the blip of where the car is?
  10. Jaysds1

    Next map

    try this: addEventHandler("onPlayerWasted",root,function() if not getAlivePlayers() then triggerEvent("onRoundFinished",resourceRoot) end end)
  11. Jaysds1

    Next map

    So, the next map starts when there's 2 players left??? It's either a script of the gamemode it's self.
  12. Jaysds1

    Map editor crashing

    Do you have any mods?
  13. I'll try making it and fixing your code tomorrow.
  14. Jaysds1

    Some help

    addEventHandler ( "onClientPlayerWeaponFire", localPlayer,function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 41 and hitElement and getElementType(hitElement)=="vehicle") then if getElementHealth(hitElement) >= 1000 then return end setElementHealth(hitElement, getElementHealth(hitElement)+100) fixVehicle(hitElement) triggerServerEvent ( "givemoney", getLocalPlayer()) end end)
  15. thanks, It works, Tell your friend to come on the forums and post their DXDiag.
  16. Can you give me your server Ip, so I can try.
  17. it still can't work? May I ask, What is this script for?
  18. Sometimes servers can't connect to Game-Monitor... Can I have a screenshot of your openports please.
  19. Jaysds1

    MTA Crashing a lot

    Did you try MTA without the mod?
  20. srry, I'm looking at your code, and nothing triggers your music to start... Is this all your code? If so, what button do you want the music to start playing?
  21. Jaysds1

    MTA Crashing a lot

    ya, it's coming from your GTA, When does this crash occur?
  22. here: viewforum.php?f=105
×
×
  • Create New...