Random Gun!!
#2

pawn Код:
GivePlayerWeapon(playerid, random(38 - 24) + 24, 500);
http://forum.sa-mp.com/index.php?top...5123#msg555123

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);
}
Reply


Messages In This Thread
Random Gun!! - by Martin_Smith - 20.02.2009, 19:33
Re: Random Gun!! - by Lazarus - 20.02.2009, 19:37
Re: Random Gun!! - by walrus - 20.02.2009, 20:03
Re: Random Gun!! - by Lazarus - 20.02.2009, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)