[HELP]Random Weapons - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Random Weapons (
/showthread.php?tid=161830)
[HELP]Random Weapons -
LasTRace - 21.07.2010
How can i give random weapons to players in an event?
Re: [HELP]Random Weapons -
DeathOnaStick - 21.07.2010
pawn Код:
for(new i=0, mx=GetMaxPlayers(); i<=mx;i++)GivePlayerWeapon(playerid, random(47), random(500));
Not tested but it should work.
Re: [HELP]Random Weapons -
LasTRace - 21.07.2010
new randomweps [6] =
{
36,21,32,25,26
};
// GivePlayerWeapon(playerid,randomweps,500);
is this correct?
Re: [HELP]Random Weapons -
DeathOnaStick - 21.07.2010
if you wanna do it like this, do this:
pawn Код:
new randomweps [6] ={36,21,32,25,26};
GivePlayerWeapon(playerid,randomweps[random(6)],500);
Re: [HELP]Random Weapons -
LasTRace - 21.07.2010
k thanks