Random weapons
#5

ResetPlayerWeapons it should be, and you need opening and closing braces for cases. Also dont forget case 0. It should be case 0 to 6 with your code.
pawn Код:
case 1: {GivePlayerWeapon(playerid,AK,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~AK47 ASSUALT RIFLE",6000,4);}
EDIT: don't use "random(40)" with your code use "random(7)". I thought you wanted a complete random weapon (all weapons included) using the result of random for the id of the weapon.
Reply


Messages In This Thread
Random weapons - by Kitten - 14.11.2010, 04:36
Re: Random weapons - by [L3th4l] - 14.11.2010, 04:46
Re: Random weapons - by iggy1 - 14.11.2010, 04:48
Re: Random weapons - by Kitten - 14.11.2010, 04:52
Re: Random weapons - by iggy1 - 14.11.2010, 04:54
Re: Random weapons - by Kitten - 14.11.2010, 05:01

Forum Jump:


Users browsing this thread: 1 Guest(s)