20.02.2009, 19:37
pawn Код:
GivePlayerWeapon(playerid, random(38 - 24) + 24, 500);
EDIT:
Or,
pawn Код:
new weapon = random(11);
switch(weapon)
{
case 0: GivePlayerWeapon(playerid, 24, 500);
case 1: GivePlayerWeapon(playerid, 25, 500);
case 2: GivePlayerWeapon(playerid, 26, 500);
case 3: GivePlayerWeapon(playerid, 27, 500);
case 4: GivePlayerWeapon(playerid, 28, 500);
case 5: GivePlayerWeapon(playerid, 29, 500);
case 6: GivePlayerWeapon(playerid, 30, 500);
case 7: GivePlayerWeapon(playerid, 31, 500);
case 8: GivePlayerWeapon(playerid, 36, 500);
case 9: GivePlayerWeapon(playerid, 37, 500);
case 10: GivePlayerWeapon(playerid, 38, 500);
}