Random item.
#1

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.
Reply
#2

pawn Код:
new variable = 1 + random(1);
   
    switch(variable)
    {
        case 1:
        {
            // Random 1
        }
        case 2:
        {
            // Random 2
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)