View Single Post
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-17-2009 , 19:44   Re: new berserker == berserker
Reply With Quote #26

The only way that there isn't berseker is at the enable of the plugin or the berseker quit the game or disconnect.

You can solve this with this:
PHP Code:
public client_disconnect(id) {

     if (
id == new_berseker)   {
             new 
szPlayers[32], iNum
             get_players
(szPlayersiNum)
             
new_berseker=random_num(1iNum)
}
return 
PLUGIN_HANDLED

That solves the disconnect of the berseker.

I don't understand the problem.
You enable the plugin and the plugin choose randomly someone and make it berseker. Then you kill the berseker and the berseker is you.
And finally if a new round begins the plugin don't have any berseker? This is the problem?
Mxnn is offline