10.02.2011, 14:53
here you go...
pawn Код:
//define the random weapons you want to give here...
new const PossibleRandomWeapons[4][2] =
{
{24, 100}, //DEagle
{25, 150}, //Shotgun
{18, 4}, //Molotov
{16, 4} //Grenade
};
//give the random weapons with this code...
new r = random(sizeof(PossibleRandomWeapons));
GivePlayerWeapon(playerid, PossibleRandomWeapons[r][0], PossibleRandomWeapons[r][1]);