SonGohanL Posted March 28, 2012 Share Posted March 28, 2012 how can i make myself never die and my car dont blow in my server in mta sa 1.3 plz help Link to comment
0 qaisjp Posted March 28, 2012 Share Posted March 28, 2012 That is cheating, and that is... equal to a ban. Link to comment
0 DNL291 Posted March 28, 2012 Share Posted March 28, 2012 setVehicleDamageProof( theVehicle, damageProof ) -- theVehicle: The vehicle you wish to make damage proof. damageProof: true is damage proof, false is damageable. addEventHandler("onClientPlayerDamage", root, function () cancelEvent() end) Link to comment
0 diegofkda Posted March 29, 2012 Share Posted March 29, 2012 addEventHandler("onClientPlayerDamage", root, cancelEvent ) That's simply. Link to comment
0 qaisjp Posted March 29, 2012 Share Posted March 29, 2012 untested code, fix it yourself server: addCommandHandler('godmode', function(p) local status = getElementData(p,'god') and true or false setElementData(p, 'god', not status, true) end) addEventHandler('onVehicleEnter', function(p) local status = getElementData(p,'god') and true or false setVehicleDamageProof(source, status) end) addEventHandler('onVehicleLeave', function(p) local status = getElementData(p,'god') and true or false if status then setVehicleDamageProof(source, not status) end end) client: addEventHandler("onClientPlayerDamage", root, function() if getElementData(source,'god') then cancelEvent() end end) Link to comment
0 SonGohanL Posted March 29, 2012 Author Share Posted March 29, 2012 where i put this? Link to comment
0 MCvarial Posted March 29, 2012 Share Posted March 29, 2012 In a resource on your server. Link to comment
0 SonGohanL Posted March 29, 2012 Author Share Posted March 29, 2012 ok thx can you join my server? Link to comment
0 SonGohanL Posted March 29, 2012 Author Share Posted March 29, 2012 then what i have to do?? Link to comment
0 qaisjp Posted March 29, 2012 Share Posted March 29, 2012 Learn to use the wiki. I will not teach you how to test or use the command. You have to read the code and try to make sense of it... ~@# Link to comment
0 DNL291 Posted March 29, 2012 Share Posted March 29, 2012 we've spent enough information. the rest you can learn in the wiki. https://wiki.multitheftauto.com/wiki/Main_Page Link to comment
Question
SonGohanL
how can i make myself never die and my car dont blow in my server in mta sa 1.3 plz help
Link to comment
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now