Jump to content

Estevam2d

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by Estevam2d

  1. thanks but pq can spawn several cars? how do i spawn the same one I always wanting ?
  2. It did not work, some do not and neither he goes straight to the vehicle now.
  3. I have a vehicle only for VIPs, but when a player who is also writing / vip my vehicle disappears; how can I solve this problem? how do I get the vehicle generate respawn again if I want the same? sorry my bad english Server: function VIPMENUTRIGGER ( thePlayer , commandName ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent ( thePlayer, "GUIVIP", thePlayer) destroyElement (criado) else outputChatBox ( "Voce nao e vip, para comprar fale com alguem da staff",thePlayer) end end addCommandHandler ( "vip", VIPMENUTRIGGER ) function vehiclecar (id) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then local x,y,z = getElementPosition ( source ) criado = createVehicle ( id, x + 3, y, z + 1 ) warpPedIntoVehicle(source, criado) setElementModel(source, id) outputChatBox("[VIP] Veiculo criado",source,255,255,0,false) end end addEvent( "carr", true ) addEventHandler( "carr", getRootElement(),vehiclecar )
  4. A thank you, did not know that detail, I am new in this area script .. So I will do the client side.
  5. My problem is that the area always canceled and for all and not only for one player. help-me players do not obey. if anyone can help me I would greatly appreciate it sorry the bad english. local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) tf1 = setTimer ( function() outputChatBox ( "1% Espere carregar", player, 255, 0, 0, false) if isPedInVehicle( player ) then if getElementType ( player ) == "player" then local vehicle = getPedOccupiedVehicle ( player ) if vehicle then setVehicleLocked ( vehicle, true ) destroyElement (vehicle) setRadarAreaFlashing ( area, true ) end end end end, 5000, 1 ) function test(player) local teste = setRadarAreaFlashing ( hillArea , false ) end addEventHandler("onColShapeLeave", getRootElement(),test) function test(player) if isTimer ( tf1 ) then killTimer ( tf1 ) end end addEventHandler("onColShapeLeave", getRootElement(),test, true)
  6. It did not work already done everything, I just want to put salary for a given team.
  7. I'm doing a new method. New: function desapar(player) if getPlayerTeam(player) == getTeamFromName("Policia Militar Oficial") then outputChatBox ( "#00B3FFSalario recebido foi de #00FF2A$#F6FF009000 (teste)", player, 10, 118, 240, true) end end addEventHandler("onResourceStart",getRootElement(),desapar) how to script with start onResourceStart ? With this: addEventHandler("onResourceStart", resourceRoot, onCurrentResourceStart) ?
  8. Is not going to this team not getting salary over time
  9. I start the script nothing happens, I do not know what the error is. Help-me, sorry bad english. addEventHandler("onResourceStart", resourceRoot, function() setTimer(function(source) if getPlayerTeam(source) == getTeamFromName("Policia Militar Oficial") then givePlayerMoney ( source, 1 ) outputChatBox ( "#00B3FFSalario recebido foi de #00FF2A$#F6FF001 (teste)", source, 10, 118, 240, true) end end, 1000, 0, source ) end )
  10. thanks for that helped me a lot. I learned another lesson with you.
  11. I havê made this way yet the vehicle disappears with time. what's wrong? local car = 10000 function desapar() setTimer(destroyElement, car, 1, source) end addEventHandler("onVehicleStartExit",getRootElement(),desapar) function test() if isTimer ( car ) then killTimer ( car ) end end addEventHandler("onVehicleStartEnter",getRootElement(),test)
  12. Hi guys, i am with an problem can help-me ? I'm not achieving canceled set time when entering the vehicle. I do not want to destroy the vehicle when returning to the car. I am very beginner in the area to cancel a function sorry bad english. local car = 10000 function desapar() setTimer(destroyElement, car, 1, source) end addEventHandler("onVehicleStartExit",getRootElement(),desapar) addEventHandler("onVehicleStartEnter", getRootElement(), function ( theplayer, seat, jacked ) destroyElement ( car) end )
  13. Estevam2d

    Mechanic

    Solved by myself ... difficult but not impossible.
  14. Estevam2d

    Mechanic

    Help-me I can not leave the car in the planned time. sorry for the bad english. local allowedTeams = { ["Mecanico"] = true, ["Staff"] = true, } function fix () car = getPedOccupiedVehicle(source) if allowedTeams[getTeamName(getPlayerTeam(source))] and getElementHealth(car) < 999 then price = 1001 - getElementHealth(car) givePlayerMoney(source, price*20) outputChatBox("Este carro sera reparado em 10 segundos.", source, 0, 255, 255) toggleControl (source, "enter_exit", false) setTimer ( function() fixVehicle(car) end, 10000, 1 ) setTimer ( function() toggleControl (source, "enter_exit", true) end, 15000, 1 ) -- <= Error here end end addEventHandler("onPlayerVehicleEnter", getRootElement(), fix)
  15. the cylinder is visible to all, should be only for the player who is working.
  16. I have a problem ... I and another player is getting to see the cylinder, is to do just a look? function createPilotTeam () Pilotteam = createTeam ("Caminhoneiro", 99, 155, 144) end addEventHandler ("onResourceStart", resourceRoot, createPilotTeam) function lsjobser () entrega = createVehicle (403, -1834.484, 162.317, 16.086, 0,0,270) carga = createVehicle (450, -1843.175, 162.317, 15.117, 0,0,270) warpPedIntoVehicle(source, entrega) playeraccount = getPlayerAccount( source ) setAccountData( playeraccount, "team", "Traficante", true ) setPlayerTeam( source, playeraccount ) markerentrega = createMarker (-1748.417, 1.44, 3.555, "cylinder", 2, 255, 0, 0, 255, localPlayer ) setMarkerTarget(markerentrega,3000,0,0, localPlayer ) end addEvent ("fazenda", true) addEventHandler ("fazenda", root, lsjobser) function markerHitLVgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == markerentrega) or (source == gate2LVmarker)) and (id == 403) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LV") then end setTimer(function() destroyElement(markerentrega) destroyElement(entrega) destroyElement(carga) givePlayerMoney (hitPlayer, 3500) outputChatBox ("Entrega feita com sucesso, aqui esta seu $3.500.", hitPlayer, 255, 255, 0) end, 50,1) elseif ((source == markerentrega) or (source == gate2LVmarker)) then outputChatBox ("Não da para voce entregar sem um caminhao o_O", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitLVgate)
  17. What do I need for a player can not open the window in the cylinder in a car?
  18. I know, but I wanted to disable some weapons in LS and SF
  19. correct ... That's what I want ... but the problem is that I wanted the police usase Nigthstick; and I just wanted to protect SF and LS.
  20. I'm desperately trying to help stop the free kill
  21. How do I get LS is protected not to have free kill ?
  22. Estevam2d

    Help-me

    Thank'll start creating
×
×
  • Create New...