Hey guys, I'm currently working on my server(zombies). Long story short:  
I edited the "play gamemode" to ban the player for 5 minutes if he/she gets killed.  
However its not going very well, this is what im doing 
 
addEventHandler("onPlayerWasted", root, 
    function() 
    ban banPlayer ( player bannedPlayer, [ bool IP = true, bool Username = false, bool Serial = false,  
player responsiblePlayer = nil, string reason = "Sorry, You have died, To make the game fun, any player that dies gets banned for 5 minutes :)", int seconds = 300 ] ) 
    end 
) 
 
When i die in the game, it just brings up the map. Any help!?