Jump to content

xeon17

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xeon17

  1. No, first it's a script and not a config
  2. Please read the following link , it's time for you to learn about scripting. Read my last post also. https://wiki.multitheftauto.com/wiki/Meta.xml
  3. I guess the script type isn't defined in meta or it's server side but should be client side.
  4. xeon17

    GUI Help!

    Just put it on the first line in the function or it's too hard for you?
  5. You copied the code from wiki example, have you even readed what the code do?.. This example takes money from a player when he types "takecash number" in the console.
  6. Use this.. -- get a table with all teams local allTeams = getElementsByType ( "team" ) -- for every team, addEventHandler("onResourceStart", resourceRoot, function () for index, theTeam in ipairs(allTeams) do -- if friendly fire is off, if ( getTeamFriendlyFire ( theTeam ) == false ) then -- switch it on setTeamFriendlyFire ( theTeam, true ) end end)
  7. No, you'll need to use this functions to create what you want. If you get problems,post what you tried and i'll help you.
  8. As i know there isn't a script like this on the community, to create a script like this is pretty easy. Event; onClientVehicleDamage Functions: getElementModel cancelEvent() getElementHealth getElementPosition createExplosion When a player damage ,check the model of the vehicle,if the model is a rhino then cancel the event and create your damage system for the rhino,use getElementHealth to get his health , and use setElementHealth to make him health lower. getElementPosition and createExplosion to make the rhino explode.
  9. I'm not sure if it's possible to change effects , but try this; 1. Login in your account (you need to be admin) 2. Open F8 and write "debugscript 3" 3. Restart the resource, and check does debugscript 3 output something about your resource. @EDIT: the functions engineLoadTXD and engineImportTXD work only for the gta3.img, effects are in models folder,so you can't change effects. Use shaders.
  10. Oh haven't understood you, i thought you wanted to edit the time of rhino reload.
  11. Edit this part of script: setTimer (function() guiProgressBarSetProgress ( bar, 10 ) end, 690, 1) setTimer (function() guiProgressBarSetProgress ( bar, 20 ) end, 1400, 1) setTimer (function() guiProgressBarSetProgress ( bar, 30 ) end, 2100, 1) setTimer (function() guiProgressBarSetProgress ( bar, 40 ) end, 2800, 1) setTimer (function() guiProgressBarSetProgress ( bar, 50 ) end, 3500, 1) setTimer (function() guiProgressBarSetProgress ( bar, 60 ) end, 4200, 1) setTimer (function() guiProgressBarSetProgress ( bar, 70 ) end, 4900, 1) setTimer (function() guiProgressBarSetProgress ( bar, 80 ) end, 5600, 1) setTimer (function() guiProgressBarSetProgress ( bar, 90 ) end, 6300, 1) setTimer (function() guiProgressBarSetProgress ( bar, 100 ) end, 6910, 1) setTimer (toggle2, 7000, 1)
  12. I also use this resource it's great , what will be new ?
  13. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 41) then toggleControl ( "fire" , false) else toggleControl ( "fire",true) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc)
  14. https://wiki.multitheftauto.com/wiki/Resources https://wiki.multitheftauto.com/wiki/Sc ... troduction Don't be lazy and check these links,there is everything what you need to know.
  15. Just use the code from wiki, the example is doing that what you want... -- get a table with all teams local allTeams = getElementsByType ( "team" ) -- for every team, addEventHandler("onResourceStart", resourceRoot, function () for index, theTeam in ipairs(allTeams) do -- if friendly fire is off, if ( getTeamFriendlyFire ( theTeam ) == false ) then -- switch it on setTeamFriendlyFire ( theTeam, true ) end end)
  16. Read this, viewtopic.php?f=91&t=83473&p=759228#p759228
  17. I suggest you to learn Scripting
  18. Sounds hard, any other way?
  19. Is this what you seach? https://community.multitheftauto.com/in ... ls&id=1280
  20. Bilo bi dovoljno i da se skupi nas 10 scriptera/mappera , da napravimo jedan orginalan Balkanski server. Mogo bi se napraviti i sistem jezika da bi bilo lakse igrati igracima koji ne govore bosanski/hrvatski/srpski.
  21. Real resource: https://community.multitheftauto.com/in ... ls&id=7057 Fake resource (code stolen from real resource): https://community.multitheftauto.com/ind ... s&id=10646 Text; So i'll be fast, the resource of user srzika is on .sz files,i changed the files to .Lua and saw the codes are stolen. http://imgur.com/ERSW14Z,LVL3wy2,UMb7cny This are photos from the resource of srzika,please check the codes from the real resource. They are stolen. DONE
×
×
  • Create New...