[HELP]Give random weapon HELP ME = REP+ xD
#1

Code i used or tryed:
GivePlayerWeapon(playerid, random(16, 17, 18), 3);

What i want to do:
i want to give player random weapon, but only the one in brackets, random(16, 17, 18)
Reply
#2

help me
Reply
#3

pawn Код:
stock GiveRandomWeapon(playerid)
{
    new Rand = random( 3 );
    switch( Rand )
    {
    case 0: GivePlayerWeapon( playerid, 16, 1000);
    case 1: GivePlayerWeapon( playerid, 17, 1000);
    case 2: GivePlayerWeapon( playerid, 18, 1000);
    }
}
Reply
#4

Quote:
Originally Posted by Parka
Посмотреть сообщение
pawn Код:
stock GiveRandomWeapon(playerid)
{
    new Rand = random( 3 );
    switch( Rand )
    {
    case 0: GivePlayerWeapon( playerid, 16, 1000);
    case 1: GivePlayerWeapon( playerid, 17, 1000);
    case 2: GivePlayerWeapon( playerid, 18, 1000);
    }
}
thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)