Raised This Month: $ Target: $400
 0% 

Random Player event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 04-15-2007 , 22:29   Re: Random Player event
Reply With Quote #8

Code:
public random_event() {     if(mode!=2)         return PLUGIN_HANDLED;             new players[32],num;     get_players(players,num,"a")     new random = random_num(0, num-1)     new id = players[random]             ninja_me(id)         return PLUGIN_HANDLED }

Also you might want to add a variable to remember who the current ninja is, so you can remove their ninja powers once a new one has been selected?

And what's the point in checking what team the person is on if you do the same thing either way?...
pRED* 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 06:40.


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