Random item. - 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)
+--- Thread: Random item. (
/showthread.php?tid=448893)
Random item. -
Zex Tan - 06.07.2013
Hello, I've recently created a /search command but it didn't go out well. So, here's how it goes, when a is player near to an area. When they /search they will be frozen and after the Timer they will get random weapons including ammo. How's the structure of that random part ? I know random for messages but not for like GivePlayerWeapon or something.
Re: Random item. -
Sasoft - 06.07.2013
pawn Код:
new variable = 1 + random(1);
switch(variable)
{
case 1:
{
// Random 1
}
case 2:
{
// Random 2
}
}