Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Sera porque pusiste getPlayerAccount fuera de la funcion y "source" esta con "S" mayuscula?
  2. Como que se van los autos y yo?
  3. Si lo tiene: setElementFrozen ( teleportElement, true ) setElementPosition ( teleportElement, 741.3369140625, 798.7236328125, 772.5 ) setElementRotation ( teleportElement, 0, 0, 0 ) setElementFrozen ( teleportElement, false )
  4. "Yes" doesn't answer my question.
  5. Intenta usar un timer para descongelar al jugador.
  6. He wants to prevent players from changing nick inside his server, that script does it, what's the problem if players leave the server and get the new nick he set from the settings?
  7. You mean the alive players? if so, I'm not sure, but you can make one really easy. function getRaceAlivePlayers ( ) local players = 0 for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "state" ) == "alive" ) then players = ( players + 1 ) end end return players end
  8. No, dxDrawText is more efficient ( as far as I know ).
  9. Es el mismo script que el mio, #Pai_[N].
  10. Enviame todo el server side por PM.
  11. No tiene nada mal ese script tampoco.
  12. Teleport1 = createMarker ( 807.5, 841.70001220703, 8.8000001907349, "corona", 10, 0, 0, 0, 0, getRootElement() ) Teleport2 = createMarker ( 674.73828125, 909.494140625, 791.348449707034, "corona", 10, 0, 255, 255, 255, getRootElement() ) Teleport3 = createMarker ( 720.93139648438, 919.96643066406, 772.42846679688, "corona", 5, 60, 255, 0, 255, getRootElement() ) function MarkerHit ( hitElement ) local vehicle = getPedOccupiedVehicle ( hitElement ) local skin = getElementModel ( hitElement ) if ( skin == 100 ) then local teleportElement = ( vehicle and vehicle or hitElement ) if ( source == Teleport1 ) then setElementFrozen ( teleportElement, true ) setElementPosition ( teleportElement, 741.3369140625, 798.7236328125, 772.5 ) setElementRotation ( teleportElement, 0, 0, 0 ) setElementFrozen ( teleportElement, false ) elseif ( source == Teleport2 ) then setElementFrozen ( teleportElement, true ) setElementPosition ( teleportElement, 631.3056640625, 833.025390625, 39.091259002686 ) setElementRotation ( teleportElement, 0, 0, 0 ) setElementFrozen ( teleportElement, false ) elseif ( source == Teleport3 ) then setElementFrozen ( teleportElement, true ) setElementPosition ( teleportElement, 822.73046875, 909.7177734375, 13.3515625 ) setElementRotation ( teleportElement, 0, 0, 0 ) setElementFrozen ( teleportElement, false ) end end end addEventHandler ( "onMarkerHit", root, MarkerHit ) Proba eso.
  13. No le falta anda, deberia funcionar, estas seguro de que es en esa funcion? P.D: Deberias enviar el trigger para el jugador que se registro nada mas. function reg ( ID, pass ) local ID = tostring ( ID ) local pass = tostring ( pass ) local anadida = addAccount ( ID, pass ) if ( anadida ) then triggerClientEvent ( source, "onRegistrado", getRootElement() ) else triggerClientEvent ( source, "onNoRegistrado", getRootElement() ) end end addEvent ( "onRegister", true ) addEventHandler ( "onRegister", getRootElement(), reg )
  14. That's wrong, getPlayerTeam returns a team element, you must use getTeamName to get the name. addEventHandler ( "onClientMarkerHit", job, function ( player ) if ( getElementType ( player ) == "player" and player == localPlayer ) then local team = getPlayerTeam ( localPlayer ) if ( team and getTeamName ( team ) == "Pizza Delivers" ) then outputChatBox ( "You are already a Pizza Deliver!", 0, 255, 0 ) guiSetVisible ( Window_Job, true ) showCursor ( true ) end end end )
  15. Try this guy code the name realy it won't change but in the setting it will change! It'll appear as changed, but it won't change in game.
  16. That's not true, on my server I don't want players to use color codes on their nick, and when I try to set them on the settings, it cancels the event as well.
  17. Even if you knew how to decompile it, you wouldn't be able to use it, because you can't decompile a script and get the original code.
  18. Why it doesn't work? have you tried debugging it?
  19. cancelEvent should work just fine.
  20. I think that you aren't getting the point of this section right, here we help you to fix your scripts, we don't make them for you, so, you should try to make the script, if it doesn't work, post it here and we help you.
×
×
  • Create New...