Code: Select all
OnCharacterDeath(
function(player)
if GetCharacterTeam(player) == 2 and IsCharacterHuman(player) then
TeamChange(player, 1)
end
)
person dies-> check to see if they are human -> if yes then check team -> if team 2 switch their team.
seems a simple enough task. As I said im not very good with LUA, so there may be things horribly wrong with my script. If anyone could will they please fix it for me. thanks



