Adde Posted August 23, 2013 Share Posted August 23, 2013 Hey guys, I need some help with this script. It should make it unavailable for players in the same team ( police department ) to damage eachother IF the weapon isn´t oghtstick. I made it like this, can´t find the error. And nothing in debug. function noDM(attacker) if ( getPlayerTeam(source) == "Police Department" ) and ( getPlayerTeam(attacker) == "Police Department" ) and ( not getPlayerWeapon(attacker) == "3" ) then cancelEvent() end end addEventHandler("onPlayerDamage", getRootElement(), noDM) Link to comment
denny199 Posted August 23, 2013 Share Posted August 23, 2013 https://wiki.multitheftauto.com/wiki/SetTeamFriendlyFire Link to comment
Adde Posted August 23, 2013 Author Share Posted August 23, 2013 Oh, I haven´t noticed that function. But thank you Link to comment
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