-
Posts
1,903 -
Joined
-
Last visited
-
Days Won
1
Everything posted by xeon17
-
No, first it's a script and not a config
-
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
-
I guess the script type isn't defined in meta or it's server side but should be client side.
-
Just put it on the first line in the function or it's too hard for you?
-
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.
-
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)
-
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.
-
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.
-
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.
-
Oh haven't understood you, i thought you wanted to edit the time of rhino reload.
-
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)
-
I also use this resource it's great , what will be new ?
-
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)
-
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.
-
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)
-
Read this, viewtopic.php?f=91&t=83473&p=759228#p759228
-
I suggest you to learn Scripting
-
Sounds hard, any other way?
-
Is this what you seach? https://community.multitheftauto.com/in ... ls&id=1280
-
Balkan MTA zajednica (predlog) / Balkans MTA Community (sug)
xeon17 replied to .:DoA:.Backflip's topic in Balkan
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. -
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