Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Einheit-101

  1. varez, youre my hero. EDIT::: WORKS NOW; CAN BE CLOSED.
  2. ye but its still not working lol
  3. Ohhh i hate those n00b errors... thanks. I look after it. EDIT::: It works now. But how can i make an "or" because the script doesnt trigger vehicle_secondary_fire. so: if (getControlState ( "vehicle_fire" )) OR (getControlState ( "vehicle_secondary_fire" )) then ... how to make an or?
  4. WHAT?!? I forgot the brackets? A n00b mistake³! And i dent know how to make it like you said with the arguments^^ I already said that its enough for me when it just works anyway; a small/efficient script is not sooo important.
  5. Hello again! I have made a script which should prevent the rhino from firing so fast (reload-script) but whats wrong? No error messages, nothing happens: CLIENT: fired = false function toggle1() local Player = getLocalPlayer() if fired == false then if isPedInVehicle ( Player ) then local theVehicle = getPedOccupiedVehicle ( Player ) if ( getElementModel ( theVehicle ) == 432 ) then if (getControlState ( vehicle_fire )) then setTimer (function() toggleControl ( "vehicle_fire", false ) toggleCont
  6. ***EDITET CODE*** Hey Guys, I made a final version of my rank script but it still doesnt work. The console/server does not output anything. INFOS: This script should promote you to a new rank if you have killed a amount of zombies, a gui element should show your rank. this "guiCreateStaticImage" should create a image and every rank has a different one. I use setAccountData because i want to save the rank. I also want a dxscoreboard tab showing the rank; it shows the tab rank, but nothing else. SERVER: function onResourceStart(startedResource) if startedResource == getThisResour
  7. :::HERE IS THE CODE::: It happens Nothing. No error messages. server: function onResourceStart(startedResource) if startedResource == getThisResource() then call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Rank") end end addEventHandler("onResourceStart", getRootElement(), onResourceStart) function killed( ammo, attacker, weapon, bodypart ) if (attacker) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then if (getElementData (source, "zombie") == true) then local oldRan
  8. Thanx varez! It works! I will upload this resource to community.mtasa.com with credits to you! I improved the sound. ******TOPIC CAN GET CLOSED******
  9. I am working on it. I dont want that you make it. I will post the code later and you can try to watch for errors.
  10. Hello Community. I try to write a script to get the Zombie kills of a player and make a dxscoreboard tab showing the rank of the player. The more kills, the better your rank. (10 kills=rookie, 50 kills=soldier, etc.etc...) And, for example, if you are a rookie, you get instead of one wanted star a custom image showing your rank. Anyone helping me is very welcome.
  11. http://www.sendspace.com/file/whumq3 Bidde!
  12. Yes. it says ERROR in uberschall/ psound.lua: CRC Mismatch @varez how can i send you the resource? I can describe what i want: A sonic boom! The sound file/knall.mp3 is a self-made BOOOOM!
  13. OKAY TOPIC CAN BE CLOSED!!! Snake, your code had an error^^ a end was missing in line 16^^ FINAL CODE: function shout(player, cmd, ...) local accountname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then for id, players in ipairs(getElementsByType("player")) do local message = table.concat({...}," ") local textDisplay = textCreateDisplay () local nombre = getPlayerName(player) --local textItem2 = textCreateTextItem( ""..nombre, 0.5, 0.4, 2, 0, 255, 0, 255, 4, "center", "center" ) local textItem = textCreateT
  14. Wow snake, thanks a lot!!! I am really wondering how you guys script those things without problems
  15. Hello Dears, i am looking for a script that outputs a Display message (like Admin Shout) to ALL players. Here is my code: addEventHandler( "onClientRender", getRootElement( ), function ( wanted ) local instructions = guiCreateLabel ( 0, 0.2, 1, 0.5, "5000$ REWARD FOR KILLING EINHEIT-666 OR 101", true ) guiSetFont ( instructions, "Arial" ) guiLabelSetColor ( instructions, 255, 0, 0 ) guiLabelSetHorizontalAlign ( instructions, "center", false ) setTimer ( destroyElement, 10000, 1, instructions ) end ) The Problem is the GUI. I h
  16. EDIT2: It plays the sound strange. If i am faster than 230 mph it make bööööööööööööö[...]öm until i am slower than 230 mph.
  17. !!!WOW!!! RESPECT!! You have answered me! So you have done something the German Community has never done! Thanks! I will test it now and try to learn from you, Remi-x. @ varez Maybe its not the best way, but i am lucky if it works anyway and i dont like so much "gefuschels" because it doesnt work if i make it Edit1: What will happen if I delete the"IsSoundPlayed == true" or add a Timer which sets it to false again because i want the sound to play again when your plane is faster than 230 mph again.
  18. Hello Community, i am new in this Forum and i hope that you will help me better then the German Community I have made this script with help from Wiki and codeparts from other resources. But it does not work. The script should check if a player is in a Hydra and play the sound "knall.mp3" if the Hydra is faster than 230 mph. Hope for help. local vehSpeed = getVehicleSpeed() function planeEnter ( theVehicle, seat, jacked ) id = getElementModel ( theVehicle ) if id == 520 then if (speed >= 230) then local sound = playSound(files/knall.mp3) setSoundVolume(sound, 1)
  • Create New...