Random Weapons after Spawn
#3

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
pawn Код:
new wepsid[5][2] =
{
   {1,100}, // first is the id of the weapon, second is the amount of ammo.
   {2,200}, // first is the id of the weapon, second is the amount of ammo.
   {3,300}, // first is the id of the weapon, second is the amount of ammo.
   {4,400}, // first is the id of the weapon, second is the amount of ammo.
   {5,500} // first is the id of the weapon, second is the amount of ammo.
};

// usage:
new rando = random(sizeof(wepsid)); // making a random function.
GivePlayerWeapon(playerid,wepsid[rando][0],wepsid[rando][1]);  // giving random weapons, and random ammo which has been placed at array 2D.
Thanks +rep, but its better if i used Stock?
Reply


Messages In This Thread
Random Weapons after Spawn - by kbalor - 17.07.2012, 18:25
Re: Random Weapons after Spawn - by leonardo1434 - 17.07.2012, 18:36
Re: Random Weapons after Spawn - by kbalor - 17.07.2012, 18:39
Re: Random Weapons after Spawn - by leonardo1434 - 17.07.2012, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)