Search the Community

Showing results for tags 'jump'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 2 results

  1. 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)
  2. Olá. Estou fazendo um script em que o jogador faz uma animação quando digita um comando, script simples. Ele senta normalmente sem nenhum erro, porém quando eu aperto o botão de pular (Left Shift ou Right Ctrl) o personagem cancela a animação, mesmo eu tendo colocado como false no parâmetro de interruptable na animação. Segue parte do script. function commandSitDown (source) setPedAnimation (source, "ped", "seat_down", -1, false, false, false, true) outputChatBox ("Você está sentado, para levantar use #FFFF00/levantar.", source, 255, 255, 255, true) end addCommandHandler ("sentar", commandSitDown) Alguma ideia? Eu já tentei colocar isso, mas ele cancela a animação mesmo assim, só que não pula. toggleControl (source, "jump", false)