12.03.2013, 02:00
Nice and simple, but instead of
You can make it like
pawn Код:
if ( listitem == 0 )
{
GivePlayerWeapon( playerid, 1, 2 );
}
if ( listitem == 1 )
{
GivePlayerWeapon( playerid, 2, 2 );
}
if ( listitem == 2 )
{
GivePlayerWeapon( playerid, 3, 2 );
}
pawn Код:
new
weapons[ ] = { 1, 2, 3 };
GivePlayerWeapon( playerid, weapons[ listitem ], 2 );