Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    help

    Copy my code again, I forgot to create the second gate.
  2. Maybe try to turn off the helicopter engine BEFORE set the rotor's speed?
  3. Castillo

    help

    addEventHandler ( "onResourceStart", resourceRoot, function () local gate1 = createObject(971, 0, 0, 5) local gate2 = createObject(971, 0, 0, 5) local Car1 = createVehicle ( 567, -1736, -2895, 55, 0, 0, 236 ) local Car2 = createVehicle ( 567, -1744, -2913.3000488281, 55, 0, 354.488, 220 ) attachElements( gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( Car1, 1087 ) addVehicleUpgrade ( Car2, 1087 ) end) function attach(thePlayer) if not isPedInVehicle(thePlayer) then return end local vehicle = getPedOccupiedVehicle(thePlayer) local car1gate1 = createObject(971, 0, 0, 5) local car1gate2 = createObject(971, 0, 0, 5) attachElements( car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) end addCommandHandler ( "spatula", attach)
  4. I don't know what are you talking about, maybe you created the objects with the same variables?
  5. Well, your script is totally different, it creates two cars and attaches these objects to them, plus add the hydraulics. Here I'll leave a script that'll attach it to your vehicle. function attach(thePlayer) if not isPedInVehicle(thePlayer) then return end local vehicle = getPedOccupiedVehicle(thePlayer) local car1gate1 = createObject(971, 0, 0, 5) local car1gate2 = createObject(971, 0, 0, 5) attachElements( car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) end addCommandHandler ( "spatula", attach)
  6. What can I say? another Valhalla copy server... guys, when is someone going to make a new RP from scratch?
  7. Works perfect, the cars get created and these objects attached to them.
  8. Have you typed the /spatula command?
  9. function attach() car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, -1736, -2895, 55, 0, 0, 236 ) Car2 = createVehicle ( 567, -1744, -2913.3000488281, 55, 0, 354.488, 220 ) attachElements( car1gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) attachElements( car2gate1, Car2, 0.05, 6.2, -0.6, 90, 90, 90 ) attachElements( car2gate2, Car2, 0.05, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( Car1, 1087 ) addVehicleUpgrade ( Car2, 1087 ) end addCommandHandler ( "spatula", attach)
  10. That script will do that.
  11. Castillo

    Urgent!

    To do what? you should give more details.
  12. addCommandHandler("hide", function (thePlayer) local account = getPlayerAccount(thePlayer) if not account or isGuestAccount(account) then return end local accountName = getAccountName(account) if not isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then return end if isPlayerNametagShowing(thePlayer) then setPlayerNametagShowing(thePlayer, false) setElementAlpha(thePlayer, 0) else setPlayerNametagShowing(thePlayer, true) setElementAlpha(thePlayer, 255) end end)
  13. s2 = createBlip( -2519, -623, 133, 23) dutymarker = createMarker(-2519, -623, 131, 'cylinder', 2.0, 255, 0, 0, 150) function duty(thePlayer, matchingDimension) setElementPosition ( thePlayer, -1980.78, 660.05, 46.56 ) end addEventHandler("onMarkerHit",dutymarker,duty)
  14. You can add a column with the "sub" team name, if you want something else, you'll have to edit the scoreboard.
  15. You can't create "sub" teams, but you can set element data to the player.
  16. Parece ser que esta todo resuelto, voy a cerrar el tema para que no hagan spam. P.D: Enviame un PM si quieres que lo abra de nuevo.
  17. Of course it's server side, would be stupid to be in client side, they could see your database username, password and so on.
  18. Maybe is getting the old skin? try setting a timer.
  19. That table doesn't has any skin model, my suggestion is to make the table like this: SkinDescriptions = {[0] = "Carl Johnson", [46] = "Dark Romeo"} That way you can get the name really easy.
  20. You got the names... but where are the ID's? how are you going to get the name of the ID?
  21. Dev-Point, that would be the same, as I said, skin doesn't has names, you must name them with a script.
  22. That code will output the SKIN model of the player that just spawned. Btw, skins doesn't has "NAMES".
×
×
  • Create New...