[HELP]Random Weapons
#1

How can i give random weapons to players in an event?
Reply
#2

pawn Код:
for(new i=0, mx=GetMaxPlayers(); i<=mx;i++)GivePlayerWeapon(playerid, random(47), random(500));
Not tested but it should work.
Reply
#3

new randomweps [6] =
{
36,21,32,25,26
};

// GivePlayerWeapon(playerid,randomweps,500);

is this correct?
Reply
#4

if you wanna do it like this, do this:

pawn Код:
new randomweps [6] ={36,21,32,25,26};

GivePlayerWeapon(playerid,randomweps[random(6)],500);
Reply
#5

k thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)