21.08.2009, 16:44
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);
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;
}
}