Raised This Month: $ Target: $400
 0% 

new berserker == berserker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 12-17-2009 , 21:15   Re: new berserker == berserker
Reply With Quote #11

Quote:
Originally Posted by Mxnn View Post
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?

New round no berserker only.
__________________
ƒa†es™ is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode