Jump to content

Arsilex

Members
  • Posts

    1,410
  • Joined

  • Last visited

Everything posted by Arsilex

  1. Arsilex

    Color

    MySQL Query failed. me sale eso pero solo si lo ago con coches guardados en el mysql con coches temporales no me sale nada
  2. si setVehicleLocked( vehicle, not isVehicleLocked( vehicle ) )
  3. Como aria para abrir todos los coches de 1 solo modelo osea poner /abrircoches y se abren los coches taxi o los que ponga alguen sabe?
  4. Arsilex

    Color

    addCommandHandler( { "setvehiclecolor", "setcolor" }, function( player, commandName, other, color1, color2 ) local color1 = tonumber( color1 ) local color2 = tonumber( color2 ) or color1 if other and color1 and color2 and color1 >= 0 and color1 <= 255 and color2 >= 0 and color2 <= 255 then local other, name = exports.players:getFromName( player, other ) if other then local vehicle = getPedOccupiedVehicle( other ) if vehicle then local data = vehicles[ vehicle ] if data then if data.vehicleID < 0 or exports.sql:query_free( "UPDATE vehicles SET color1 = " .. color1 .. ", color2 = " .. color2 .. " WHERE vehicleID = " .. data.vehicleID ) then setVehicleColor( vehicle, color1, color2, color1, color2 ) outputChatBox( "Changed the color of " .. name .. "'s " .. getVehicleName( vehicle ) .. ".", player, 0, 255, 153 ) else outputChatBox( "MySQL Query failed.", player, 255, 0, 0 ) end else outputChatBox( "Vehicle Error.", player, 255, 0, 0 ) end else outputChatBox( name .. " isn't driving a vehicle.", player, 255, 0, 0 ) end end else outputChatBox( "Syntax: /" .. commandName .. " [player] [color 1] [color 2]", player, 255, 255, 255 ) end end, true ) como hacer para que el script reconozca colores R,B,G
  5. aun asi intenta poner setGameSpeed (source, Cantidad )
  6. el argumento localPlayer o source.
  7. bueno grax aver si logro hacer algo con eso
  8. no funciona ya que esto es paradise y el getacount te devulve nil
  9. nada esto lo unico que cambio es que ahora los Player no pueden enviar PM ni a admin ni a Player y los Admins si Lo que yo quiero es que los player solo puedan a admin y admin a todos
  10. -- /pm to message other players local function pm( player, target, message ) outputChatBox( "PM a [" .. exports.players:getID( target ) .. "] " .. getPlayerName( target ) .. ": " .. message, player, 255, 255, 0 ) outputChatBox( "PM de [" .. exports.players:getID( player ) .. "] " .. getPlayerName( player ) .. ": " .. message, target, 255, 255, 0 ) end addCommandHandler( "pm", function( thePlayer, commandName, otherPlayer, ... ) if exports.players:isLoggedIn( thePlayer ) then if otherPlayer and ( ... ) then local message = table.concat( { ... }, " " ) local player, name = exports.players:getFromName( thePlayer, otherPlayer ) if player then if ( hasObjectPermissionTo ( getThisResource (), "command.kick", true ) ) then pm( thePlayer, player, message ) else outputChatBox( "El jugador no es un administrador", thePlayer, 255, 255, 255 ) end end else outputChatBox( "Syntax: /" .. commandName .. " [player] [ooc text]", thePlayer, 255, 255, 255 ) end end end ) addEventHandler( "onPlayerPrivateMessage", root, function( message, recipent ) if exports.players:isLoggedIn( thePlayer ) and exports.players:isLoggedIn( recipent ) then pm( source, recipent, message ) end cancelEvent( ) end ) Intente poner que no se pueda enviar PM a un jugador que no es admin pero lo que pasa es que cuando lo ago el admin tampoco puedo como ago para que el admin pueda?
  11. Arsilex

    Bombas

    ya nada solucionado
  12. Arsilex

    Bombas

    Como hacer para que al pasar 10 segundos pa musica pare?? function musica() local vehicle = getPedOccupiedVehicle ( source ) local x,y,z = getElementPosition( vehicle ) local sound = playSound3D("sonido/boom.mp3", x, y, z, true) setSoundMaxDistance( sound, 20 ) end addEvent( "onMusicon", true ) addEventHandler( "onMusicon", getRootElement(), musica)
  13. Arsilex

    Bombas

    ok gracias no me di cuenta
  14. Arsilex

    Bombas

    function blowVehicleEnterr ( thePlayer, seat, jacked ) if ( seat == 0 and bombVehicles [ source ] ) then setTimer(blowVehicle, 6000, 1, source ) local x,y,z = getElementPosition( source ) playSound3D("sounds/song.mp3", 373.14, -125.21, 1001, true) end end Por que no suena eso?
  15. Arsilex

    Bombas

    ok mañana lo pruebo gracias por tu ayuda alexs
  16. Arsilex

    Bombas

    function bomba22 ( ) local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle ) then bombVehicles [ vehicle ] = true end end addEvent ( "onBomba2", true ) addEventHandler ( "onBomba2", getRootElement(), bomba22 ) function blowVehicleEnterr ( thePlayer, seat, jacked ) if ( seat == 0 and bombVehicles [ source ] ) then setTimer ( function ( ) blowVehicle ( source ) end ,6000,1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), blowVehicleEnterr )
  17. Arsilex

    Spawn player?

    addEventHandler( "onPlayerWasted", root, function( ) spawnPlayer( source, -319.78, 1049.61, 20.34, 180, getElementModel( source ), 0, 0 ) fadeCamera( source, true ) end ) Esto es para cuando muera e.e function spawns () spawnPlayer (source, 1261, 1455, 11) fadeCamera (source, true ) end addEventHandler ("onPlayerJoin", getRootElement(), spawns) y eso para cuando entre
  18. Arsilex

    Bombas

    ya lo intente y me sale que el blow tiene un argumento erroneo e.e
  19. Arsilex

    Bombas

    Bueno mira tengo solucionado lo de que no explota pero ahora tengo otra duda function bomba22 ( ) local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle ) then bombVehicles [ vehicle ] = true setTimer ( function ( ) addEventHandler ( "onVehicleEnter", getRootElement(), blowVehicleEnterr ) end ,6000,1 ) end end addEvent ( "onBomba2", true ) addEventHandler ( "onBomba2", getRootElement(), bomba22 ) function blowVehicleEnterr ( thePlayer, seat, jacked ) if ( seat == 0 and bombVehicles [ source ] ) then blowVehicle ( source ) end end Como es posible hacer que explote en 10 segundos ?
  20. Arsilex

    Bombas

    No es para mi role en role el createVehicle da error en getElement y lo borra automatico lo que quiero es que tengo un panel presiona el boton de comprar bomba y se ponga me salgo dejo el caro donde quiero y quien se suba que aga boom
  21. Arsilex

    Bombas

    si no explotan pero tampoco explota el coche que tiene la bomba
  22. Arsilex

    Bombas

    Como hacer para que cuando ponga la bomba se ponga en el coche que estoy y cuando entro que explote y no exploten otros coches osea solo 1 vez function blowVehicleEnterr ( thePlayer, seat, jacked ) if seat == 0 then blowVehicle ( source ) cancelEvent() end end function bomba11() addEventHandler ( "onVehicleEnter", getRootElement(), blowVehicleEnterr ) end addEvent( "onBomba1", true ) addEventHandler( "onBomba1", getRootElement(), bomba11) function blowVehicleEnter ( thePlayer, seat, jacked ) if seat == 0 then setTimer ( function (thePlayer) blowVehicle ( source ) end ,6000,1 ) end end function bomba22() addEventHandler ( "onVehicleEnter", getRootElement(), blowVehicleEnter ) end addEvent( "onBomba2", true ) addEventHandler( "onBomba2", getRootElement(), bomba22)
×
×
  • Create New...