Jump to content

GGR|Takashi

Members
  • Posts

    15
  • Joined

  • Last visited

GGR|Takashi's Achievements

Square

Square (6/54)

0

Reputation

  1. I hoped so that it work but it doesn't work.... the output is shown on each vehicle like before and the timer still runs out ....the timer doesn't stop. sorry for the inconvenience... I copied ur code completely... I don't know whaats wrong there. ... I reply tomorrow need to lay me down now.
  2. jobcar= createVehicle(485, 1655.03, -1837.87, 13.58, 0, 0, 90)
  3. yes. when you get out of the jobcar there comes a message that the player needs to get back within 30 seconds otherwise the job stops and the idea is that the timer stops after the player gets back to his jobcar.
  4. I just copied your code to try it out but the problem is, that the output still comes on each vehicle (even 3 times in a row) and the timer doesn't stop (after x seconds the jobcar despawns. :/) thanks for ur constant help.
  5. Well but how can I do it that the timer only stops when the player enters a jobcar...currently the timer stops for each vehicle.... currently players could cheat...just leave the jobcar and start to use their private car like infernus. Can you help me with that?
  6. Do I understand right?!: I write to the serverside script : local vehicleJ= getPedOccupiedVehicle(localPlayer) sorry. ^^
  7. No I thought 'player' is global known. how do I do that? local player=getLocalPlayer(player) is it right? And do I need to add it to the serverside script or do I need to trigger it client side and if so, how do I do that?
  8. Hey Debug: Bad argument @'getElementModel' [expected element at argument 1, got Boolean] Bad argument @'getPedOccupiedVehicle' [expected ped at argument 1, got nil] .... end setTimer(jobfin,30000,0) end addEventHandler("onPlayerVehicleEnter",getRootElement(), function(vehicleID,leftSeat,jackerPlayer) local carjob=getPedOccupiedVehicle(player) if getElementModel(carjob) ==jobcar and isTimer(jobfin) then killTimer (jobfin) outputChatBox("Du bist rechtzeitig zurückgekehrt!",player,0,255,0,true) end end) any solution thanks?!
  9. Okay thanks...actually I tried to apply this function on my created Vehicle "jobcar" but I don't know how to do that...could u please help me? P.S. the 'jobcar' = Baggage / ID =512
  10. Hey guys. I tried to killTimer after a player gets back to his jobcar. But it doesn't work for me. there isn't even a outputChatBox (I tried it out but deleted it for this showing) local Timer= setTimer( function () JobIcon=createBlip(1611.9,-1891.8,13.60,40, 1, 0, 0, 0, 255, 0, 99999.0) outputChatBox("Der Job wurde beendet!",myPlayer,255,0,0) destroyElement(jobcar) destroyElement(markers1) end,5000,0) end addEventHandler("onPlayerVehicleEnter",getRootElement(), function(vehicleID,leftSeat,jackerPlayer) local vehicleJ=getPedOccupiedVehicle(thePlayer) --jobcar is defined at the top of my script as 'createVehicle(512,....)-- if vehicleJ == jobcar and isTimer(Timer) then killTimer(Timer) end outputChatBox("Du bist rechtzeitig zurückgekehrt!",myPlayer,0,255,0,true) outputChatBox("Drücke 'B' um die Warnleuchte einzuschalten!",myPlayer,255,135,10,true) end) local Timer= setTimer( function () JobIcon=createBlip(1611.9,-1891.8,13.60,40, 1, 0, 0, 0, 255, 0, 99999.0) outputChatBox("Der Job wurde beendet!",myPlayer,255,0,0) destroyElement(jobcar) destroyElement(markers1) end,5000,0) end addEventHandler("onPlayerVehicleEnter",getRootElement(), function(vehicleID,leftSeat,jackerPlayer) local vehicleJ=getPedOccupiedVehicle(player) --jobcar is defined at the top of my script as 'createVehicle(512,....)-- if vehicleJ == jobcar and isTimer(Timer) then killTimer(Timer) end outputChatBox("Du bist rechtzeitig zurückgekehrt!",myPlayer,0,255,0,true) --translation: You came back in time! -- outputChatBox("Drücke 'B' um die Warnleuchte einzuschalten!",myPlayer,255,135,10,true) end)
  11. Could you also help me with this one? I want to scale one of the sprunk-o-mat this is my current serversided code: scaler=createObject(1775,1928.800 , -1772.500 , 13.600 , 0,0,90) function scalex() if (scaler) then setObjectScale(scaler,1.1) setElementCollisionsEnabled(scaler,true) end end addEventHandler("onClientResourceStart",getRootElement(),scalex) Nothing changes Ingame...the Sprunk-o-mat still has its original size.
  12. Thaaaank you so much...that was the solution! Freeroom was on...now I stopped freeroom andnow the animation is no more interruptable. one love brother.
  13. Hello Guys. I have a problem and I tried many hours to fix it but I didn't get it...maybe u guys can help me out?! As u can see I wanted to use an animation when a player is in front of a sprunk-o-mat.... I wanted to hold the player for 5 seconds to make the job done(repair it)...but players are currently able to stop the animation by pressing 'LShift' I tried "setElementFrozen" but it didn't work and toggleControls(player,"jump",false) wasn't a solution as well. Any ideas? Thanks for your help! function moneymarker(hitPlayer, matchingDimension ) if isElementWithinMarker(hitPlayer,markers2)then money2 = math.random(50,75) local player = getElementType(hitPlayer) setPedAnimation( hitPlayer, "rob_bank", "cat_safe_rob", 5000, true,false,false,true) function timer23() setPedAnimation( hitPlayer, "rob_bank", "cat_safe_end", 1, true, true, true, false ) givePlayerMoney (hitPlayer,money2) outputChatBox ( "#ffffffDu hast den Automat erfolgreich repariert! Hier hast du #00ff00" ..money2.. " $!", hitPlayer,255,255,255,true ) destroyElement(markers2) destroyElement(blip2) local anzahl = getMarkerCount() if anzahl<=0 then outputChatBox("Chef: Es sind keine Automaten mehr übrig. Sehr gut! Komme nun zurück zur Firma und du erhälst eine Belohnung! !",myPlayer,255,255,0) blipziel=createBlip(1656.28, -1820.54, 13.58,0, 2, 255, 0, 0, 255, 0, 99999.0,myPlayer) markerziel= createMarker(1656.28, -1820.54, 12.90, "cylinder", 2.0, 255,0,0,150,myPlayer) function endpay(hitPlayer, matchingDimension ) if isElementWithinMarker(hitPlayer,markerziel)then outputChatBox("Hut ab für die enorme Ausdauer, die du gezeigt hast.Hier eine Belohnung von 3000 Gollar! Zeig dich weiter so fleißig und du wirst es weit bringen!",myPlayer,0,255,0) destroyElement(jobcar) destroyElement(markerziel) destroyElement(blipziel) givePlayerMoney(hitPlayer,moneyboni) end end addEventHandler("onMarkerHit", markerziel, endpay) end if anzahl==1 then outputChatBox("'Chef: Es ist noch ein Automat übrig!'",myPlayer,255,255,0) end if anzahl==2 then outputChatBox("'Chef: Du bist fast fertig!'",myPlayer,255,255,0) end if anzahl >=3 then outputChatBox("Die Auftragsliste gibt noch "..anzahl.." offene Aufträge für zu reparierende Automaten preis.",myPlayer,255,255,0) end end end setTimer(timer23,5000,1) end addEventHandler("onMarkerHit",markers2, moneymarker)
  14. Hallo liebe Leute, ich möchte euch hier einer der besten Reallife-Server vorstellen, dens gibt! Den Server habe ich zusammen mit meinem Kumpel eröffnet! Derzeit sind unsere Online-Player noch recht zurückhaltend, darum fände ich es schön, wenn Wir mal ein B00M erleben würden Fände es toll, wenn da mal einige vorbei schauen Hier liste Ich euch mal ein paar Features des Servers auf: -Kurze Einleitung auf den Server -Möglichkeit auf Lizenzen/Scheine: Auto,Motorrad,LKW Schein,Helischein, Flugschein A (Kleinflugzeuge) Flugschein B (große Flugzeuge), Segelbootschein,Motorbootsschein,Waffenschein,Persoausweis - Verschiedene Jobs: Trucker,Taxifahrer,Straßenreinigung,Drogen,-Waffendealer,Hotdogverkäufer u.v.m (Auch einige Privatunternhemen, bei denen man teilnehmen kann) -folgende Fraktionen: SFPD,FBI,Army(Viele Funktionen z.B. GWD Notenvergabe; Klassenverteilung),Triaden,Hitman,Aztecas,Hydra Force's [[ Sind dabei noch einige Fraktionen hinzuzufügen ]] -Clicksystem mit dem man auf Spieler und Fahrzeuge interagieren kann -Fahrzeugkauf möglich bis zu max. 5 Slots, bei Premiumstatus bis zu 10 Carslots -Tuning wird komplett gespeichert -Hungersystem -Premiumshop für seltene Fahrzeuge auf dem Server, z.B. 1x DB9; 1x Apprilla mit Monster Energy Design! [Textures by ©Takashi] So hoffe diese Features reichen aus, um euch für einen Blick auf unseren Server zu holen. Selbstverständlich ist das Adminteam für jede Frage bereit! Server ist bei MTA unter Internet: " German Contrex Reallife " zu finden Ts3 IP: 84.38.67.224:9988 Forum: http://contrex-reallife.de.to/ Wir würden uns über JEDEN User freuen, der bei uns auf dem Server aktiv gamen würde Unser Team verbleibt Mit freundlichen Grüßen GCR// Contrex Team ( GCR//Takashi )
×
×
  • Create New...