05.11.2009, 16:27
If you want to be sure, that really somebody is kicked at this time, but you still want it to be randomly, you may try this:
I used a "If" before, because it makes me better to notice what's going on. I think you actually could just delete it.
This might not be the best sollution, but i guess it does, what you want it to do.
Pls correct me if i'm wrong. Thanks.
Cheers,
DeathOnaStick
pawn Код:
new playa=random(MAX_PLAYERS);
if(IsPlayerConnected(playa)==0)
{
while(IsPlayerConnected(playa)==0)
{
playa=random(MAX_PLAYERS);
}
}
if(IsPlayerConnected(playa)) Kick(playa);
This might not be the best sollution, but i guess it does, what you want it to do.
Pls correct me if i'm wrong. Thanks.
Cheers,
DeathOnaStick