Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. May I ask, if you don't accept SMS, why do you reply then?
  2. You should loop all players inside 'startTimer ( )' function.
  3. I see many errors there: function startTimer () thePlayer = getRootElement() theVehicle = getPedOccupiedVehicle ( thePlayer ) theIdleTime = getPlayerIdleTime( thePlayer ) theSpeed = getElementVelocity ( theVehicle ) checkTimer = setTimer ( killHim, 100, 0 ) end You can't get the vehicle from root element.
  4. You don't need to make a second function to set the interior. function Main () point1 = createMarker(812.59881591797, -4124.7998046875, 92.460250854492, "corona", 4, 0, 0, 0, 0) obstacle1 = createObject(8171, 691.27099609375, -4124.7021484375, 91.771263122559, 90, 0, 90) obstacle2 = createObject(8171, 934.40093994141, -4124.7021484375, 91.771263122559, 90, 0, 270) setElementInterior ( obstacle1, 1) setElementInterior ( obstacle2, 1) addEventHandler ( "onClientMarkerHit", point1, MainFunction ) end addEventHandler( "onClientResourceStart", resourceRoot, Main ) function MainFunction ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= Me then return end if source == point1 then destroyElement( obstacle1) destroyElement( obstacle2) end end
  5. getElementPosition returns your world coordinates.
  6. I'll lock the topic so nobody else does useless posting.
  7. Castillo

    10,000 posts

    This is not to increase my ego.
  8. Castillo

    10,000 posts

    Well, as I've done a topic like this when I reached 5,000 posts, why not make it when I double that amount.
  9. onPlayerWasted getPlayerAccount setAccountData
  10. Castillo

    Bots

    No, puede ser una tabla normal.
  11. Depende de como quieras guardarlo, temporariamente o en alguna database. Tenes que usar el evento: onPlayerWasted
  12. Supongo que se refiere a un script que guarde los datos al morir.
  13. Castillo

    Bots

    Podes crear una tabla y guardar cada asistencia.
  14. Use getElementData and check if it's "Trucker".
  15. Oh, I supposed that setting was used to show the color codes ( not use them as color ).
  16. If I'm right, you must edit the scoreboard resource to add color codes.
  17. I don't know, and I doubt I would tell you, as vG scripts are illegally uploaded.
  18. If you don't have any idea about what you need to change, I would investigate first.
  19. The only way would be editing the Freeroam script.
×
×
  • Create New...