Random Weap Help :)
#1

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]);
Can i put this at OnDialogResponse?
Reply


Messages In This Thread
Random Weap Help :) - by Giroud12 - 01.05.2013, 07:03
Re: Random Weap Help :) - by Lordzy - 01.05.2013, 07:21
Re: Random Weap Help :) - by Giroud12 - 01.05.2013, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)