Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. lol, is not that easy to create them..
  2. Thats what i meant Arran, if i'm right the handling functions aren't in 1.1 yet o_O
  3. are the handling functions already working? o_o
  4. There was some resources that let's you film when you are driving and then you can make a bot do what you did, check mta community.
  5. that is not a script to join a team o_o
  6. setElementModel(source,217) that?
  7. Why is that? you got the same arguments for the windows or something like that?
  8. What doesn't work with it? i tryied it and it let's me teleport to those locations.
  9. You can change the chat style in settings menu. MTA 1.1 is not released yet, we don't know when will be out.
  10. Use the "EDIT" button next time
  11. huh? post what you have done.
  12. what are you talking about?? just copy my code (i've fixed function name)
  13. check the post, i've edited it.
  14. gate = createObject(ID, X, Y, Z) function moveGate(player) team = getPlayerTeam(player) if team then teamName = getTeamName(team) if teamName == "BLABLA" then moveObject(gate, 5000, newX, newY, newZ) end end end addCommandHandler("move",moveGate)
  15. Look at the links below. https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamName https://wiki.multitheftauto.com/wiki/CreateObject https://wiki.multitheftauto.com/wiki/MoveObject
  16. You could easily fixed it yourself , i put a wrong function name in client part.
  17. It works here, where did you put that code?
  18. It works here, are you sure the team name is "Surviver"??
  19. what????????????
  20. try this (not sure if it will work) --client function startSirene ( vehicle ) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "sons\\sirene1.wav", x, y, z, true) attachElements ( sound, vehicle) end addEvent( "startSirene", true ) addEventHandler("startSirene", getRootElement(), startSirene) function stopSirene() destroyElement(sound) end addEvent( "stopSirene", true ) addEventHandler("stopSirene", getRootElement(), stopSirene) --server function startSirene( player, cmd ) local commandant = createVehicle ( 554, 1227.746, -1422.281, 13.5432, 0, 0, 0, "COMM1" ) triggerClientEvent ( player, "startSirene", getRootElement(), commandant ) end addCommandHandler ( "sireneon", startSirene) function stopSirene( player, cmd ) triggerClientEvent ( player, "stopSirene", getRootElement() ) end addCommandHandler ( "sireneoff", stopSirene)
  21. for i,players in pairs (getElementsByType("player")) do setPlayerTeam(players,getTeamFromName("Surviver")) end
  22. this makes no sense O_o
  23. i was going to do that first, but suposed was ok when join
  24. change the triggerClientEvent with this one: triggerClientEvent (player, "startSirene", getRootElement(), commandant )
  25. it's giving any error in debugscript? /debugscript 3 in game
×
×
  • Create New...