Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. fetchRemote is easier and more efficient to use in my opinion.
  2. You could create a table with the positions, then loop the table to create the markers and add the event handler for when player hits marker.
  3. Castillo

    -NgR-ped

    There's no "theVehicle" anywhere in his script.
  4. Castillo

    -NgR-ped

    I don't see anything wrong with it.
  5. viewtopic.php?f=91&t=30369&p=329863&hilit=upside+down#p329863 Maybe that can help?
  6. geLocalPlayer es client side solamente.
  7. That's because you are never triggering the event "showGUIpv".
  8. takePlayerMoney client side has only one argument, the amount. But, if you take the player client side, then it won't be synchronized with the server, which means is not really taking it.
  9. I guess they are using fetchRemote, as my server also does.
  10. The wiki is wrong, the event "onClientSoundStopped" is available on MTA 1.3.5, I just tested.
  11. [REL] means that you are releasing it, but you are in fact selling it, so you should change the name.
  12. downloadFile function is not yet added, it's supposed to be added in MTA 1.4.
  13. 000webhost doesn't accept remote connections.
  14. addEventHandler ( "onClientMarkerHit", LosSantosMarker, function ( p ) if ( p == lp and not isPedInVehicle ( lp ) ) then guiSetVisible ( AirportWindow, true ) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", AirportWindow, function ( b ) if isElementWithinMarker ( localPlayer, LosSantosMarker ) then if ( b == "left" ) then if ( source == LosSantos ) then outputChatBox ( "You are already in Los Santos!", 255, 0, 0 ) end end end end ) onClientGUIClick can't be cancelled.
  15. addCommandHandler ( "explode", function ( thePlayer, _, target ) local theTarget = getPlayerFromName ( target ) -- Get the player element from it's name. if ( theTarget ) then -- If the player exists... local x, y, z = getElementPosition ( theTarget ) -- Get his position. for index = 1, 10 do -- Execute createExplosion 10 times. createExplosion ( x, y, z, 11, thePlayer ) end end end ) Read comments.
  16. Yes, if I'm correct, you must change this variable: aCurrentVehicle = 429 in: "admin/client/gui/admin_main.lua". 429 = Banshee vehicle model.
  17. Does it output errors to the debugscript?
  18. Te falta un parentesis para cerrar el addEventHandler.
  19. Yo diria mejor que pongas esos videos en off-topic y si queres los borro de aca.
  20. Tenes que poner todo lo que sea takePlayerMoney/setPlayerMoney en el server side.
  21. Debe ser que en el script de comprar armas estas tomando el dinero client-side, lo que hace que no se sincronize con el servidor.
×
×
  • Create New...