Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No, you cannot stop the vehicle from exploding.
  2. Well, that's the correct resource. Is there any error on debugscript?
  3. No, that's not what he's looking for. He wants a script where you can select the map you want to play, so each player can play a different map at the same time.
  4. You ain't updating the table, so the player count will be always the same as when the resource started.
  5. That's not really an efficient method, it would be better to just stop rendering it.
  6. Usa setPedControlState con el evento onClientPedDamage.
  7. local TiempoPr = 0 function Piromano ( ) if ( getTickCount ( ) - TiempoPr == 5000 ) then Piro = exports [ "slothBot" ]:spawnBot ( 1203.3740234375, -2153.943359375, 62.104778289795, 90, math.random ( 300, 303 ), 0, 0, Piro, 37, "guarding", true ) exports.extra_health:setElementExtraHealth ( Piro, 1500 ) setElementModel ( Piro, 162 ) setElementAlpha ( Piro, 50) outputChatBox("EL PIROMANO A APARECIDO!",source,255,0,0,true) TiempoPr = getTickCount ( ) else outputChatBox("A Aparecido Un Boss Recientemente Debes Esperar 5 Segundos Para Un Respawn",source,255,0,0,true) end end addCommandHandler ( "aparecerpiromano", Piromano )
  8. Castillo

    value name

    I don't understand what do you mean.
  9. Me pediste un ejemplo, y eso es lo que te di.
  10. viewtopic.php?f=91&t=55259&p=533972 That topic should be enough.
  11. You must use timers and tables.
  12. local lastTick = 0 -- Definimos una variable. if ( getTickCount ( ) - lastTick == 5000 ) then -- Si el tiempo que paso son 5 segundos ( 5000 milisegundos = 5 segundos ). outputChatBox ( "Pasaron 5 segundos" ) -- Enviamos un mensaje al chat. end
  13. playSound is client side only, which means if you use the command, all the sounds will be only heard by the player that used the command.
  14. Use the "tooltips" resource. https://community.multitheftauto.com/in ... ls&id=3054
  15. If the script is compiled, then nobody can help you but the person who made it.
  16. So, you got a list of camera locations and you want it to set a random one from that table?
  17. Si lo que intentas hacer es lo que yo mencione en mi anterior post, entonces te recomiendo usar getTickCount, ya que es mucho mas eficiente que un timer.
  18. Castillo

    Ayua

    En lugar de reiniciarlo, te aconsejo que arregles el bug. Si no sabes como, podes preguntar aca.
  19. Castillo

    dx edit

    Use the dx drawing functions, it won't be easy to do it though. Some events that may be helpful: onClientKey onClientCharacter
×
×
  • Create New...