Moderators IIYAMA Posted January 25, 2013 Moderators Posted January 25, 2013 How can I stop explosion at server side? https://wiki.multitheftauto.com/wiki/OnClientExplosion If the event onClientExplosion get triggered, I am able to cancel it. (cancelEvent()) But I am not able to block the signal from sending to all players. The only things that can stop this from happening: - destroyElement() (destroy the element bevore it triggers) - SetProjectileCounter (reset the explosion counter) Note: only the creator can stop it from sending Are there server-side functions to stop this?
K4stic Posted January 25, 2013 Posted January 25, 2013 in server side you can't make it but here un example in Client side: function removeDamageOnExplotion(_, _, _, theType) if getElementType(source) == "object" then cancelEvent() end end addEventHandler("onClientExplosion", root, removeDamageOnExplotion)
Moderators IIYAMA Posted January 25, 2013 Author Moderators Posted January 25, 2013 hmmm yes, thank you I will try it.
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