Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. The function won't execute if you didn't use the command.
  2. You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns.
  3. Queres que aparezca un vehiculo para cada jugador?
  4. With the script I posted it has to work.
  5. Why would you add a command to the funciton that gets the speed?
  6. function quandofecha( ) fadeCamera ( false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, true ) setCameraTarget( localPlayer ) showChat( true ) end
  7. Se define en el archivo meta.xml, postea el contenido.
  8. Si pusiste el recurso como server side, entonces tiene que funcionar.
  9. Which function? you've got many there...
  10. Donde esta definido "x, y, z"?
  11. I found the problem, copy it again.
  12. No, with what I gave you it'll work.
  13. Es un nuevo bug del MTA, lo podes arreglar cambiando el slot del arma. addEventHandler ( "onPickupHit", root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle ( player ) ) then return end destroyElement ( bag ) destroyElement ( bl ) local randomAmmo = math.random ( 100, 300 ) local arma = unpack ( armas [ math.random ( #armas ) ] ) if setPedWeaponSlot ( player, getSlotFromWeapon ( arma ) ) then giveWeapon ( player, arma, randomAmmo, true ) end outputChatBox ( "Encontraste una #007FFF".. tostring ( getWeaponNameFromID ( arma ) ) .." con #007FFF".. tostring ( randomAmmo ) .." de municion.", player, 0, 250, 0, true ) outputChatBox ( "[".. getPlayerName ( player ) .."] Ha encontrado el paquete | El siguiente paquete aparecera en unos minutos.", root, 0, 255, 0 ) setTimer ( createBag, 90000, 1 ) end )
  14. You use the same function, fadeCamera. With this it'll fade it back in after 3 seconds. setTimer ( fadeCamera, 3000, 1, true ) Put that under your fadeCamera.
  15. Castillo

    Ayuda

    Las funciones que necesitas son: addCommandHandler getTeamFromName getPlayersInTeam giveWeapon -- Para dar armas. setElementModel -- Para cambiar el skin. setElementHealth -- Para dar vida.
  16. Of what animation are you talking about?
  17. local C = createVehicle ( 547, 2506.1220, -1680.1697, 13.5765 ) setVehiclePaintjob ( C, 2 ) setVehicleDamageProof ( C, true ) setElementData ( C, "eventVehicle", true ) addCommandHandler ( "obj", function ( thePlayer ) if ( not isPedInVehicle ( thePlayer ) ) then outputChatBox ( "You're not in a vehicle.", thePlayer ) return end if getElementData ( getPedOccupiedVehicle ( thePlayer ), "eventVehicle" ) then if ( isElement ( marker ) ) then destroyElement ( marker ) else local x, y, z = getElementPosition ( C ) marker = createObject ( 1318, x, y, z + 2, 0, 0, 0 ) attachElements ( marker, C, 0, 0, 2 ) end else outputChatBox ( "You're in the wrong vehicle.", thePlayer ) end end )
  18. Actually, I'll use CJ skin as default because as far I know, we can't set the CJ clothes to another skin. But If one day it's possible, I'll make sure that feature will be added. Looks very great ! That's exactly what I was expecting. But, this means that you'll only use the CJ skin? that'll be quite weird .
×
×
  • Create New...