• AutoBalance and No Team Killing
    1 replies, posted
How can I do these things via Lua?
For team killing, as seen [url=http://wiki.garrysmod.com/?title=Gamemode.PlayerShouldTakeDamage]in the wiki[/url] : [lua]function GAMEMODE:PlayerShouldTakeDamage( victim, attacker) if attacker:Team() == victim:Team() then -- check the teams are equal. return false -- do not damage the player end return true -- damage the player end [/lua]
Sorry, you need to Log In to post a reply to this thread.