14.11.2010, 04:54
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.
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.
pawn Код:
case 1: {GivePlayerWeapon(playerid,AK,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~AK47 ASSUALT RIFLE",6000,4);}