RandomPlayeriID
#2

This might work, I'm not sure though, cannot guarantee you anything.
Edit the "random(201)" to your playerslots+1, examply your server has 51 slots, then set it to random(51);

pawn Код:
forward RandomPlayer();
public RandomPlayer()
{
    new randomplayer = random(201);
    if(!IsPlayerConnected(randomplayer)) return RandomPlayer();
    else
    {
      GivePlayerWeapon(randomplayer, 38, 5000);
      return 1;
    }
}
Reply


Messages In This Thread
RandomPlayeriID - by user226 - 21.08.2009, 15:35
Re: RandomPlayeriID - by woot - 21.08.2009, 16:44
Re: RandomPlayeriID - by user226 - 21.08.2009, 17:12
Re: RandomPlayeriID - by user226 - 21.08.2009, 18:02
Re: RandomPlayeriID - by dice7 - 21.08.2009, 18:05
Re: RandomPlayeriID - by user226 - 21.08.2009, 18:10
Re: RandomPlayeriID - by user226 - 22.08.2009, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)