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?...