[FilterScript] Weapons Pack Filterscript
#10

Nice and simple, but instead of
pawn Код:
if ( listitem == 0 )
{
    GivePlayerWeapon( playerid, 1, 2 );
}

if ( listitem == 1 )
{
    GivePlayerWeapon( playerid, 2, 2 );
}

if ( listitem == 2 )
{
    GivePlayerWeapon( playerid, 3, 2 );
}
You can make it like
pawn Код:
new
    weapons[ ] = { 1, 2, 3 };
GivePlayerWeapon( playerid, weapons[ listitem ], 2 );
Reply


Messages In This Thread
Weapons+Skins Pack Filterscript - by Private200 - 22.02.2013, 20:28
Re: Weapons Pack Filterscript - by thefatshizms - 22.02.2013, 21:06
Re: Weapons Pack Filterscript - by PabloDiCostanzo - 22.02.2013, 21:11
Re: Weapons Pack Filterscript - by Private200 - 22.02.2013, 21:18
Re: Weapons Pack Filterscript - by Private200 - 22.02.2013, 22:15
Respuesta: Weapons Pack Filterscript - by Onfroi - 22.02.2013, 22:23
Re: Respuesta: Weapons Pack Filterscript - by Private200 - 23.02.2013, 08:35
Re: Weapons Pack Filterscript - by Private200 - 11.03.2013, 13:37
Re: Weapons Pack Filterscript - by iFear - 11.03.2013, 14:04
Re: Weapons Pack Filterscript - by greentarch - 12.03.2013, 02:00

Forum Jump:


Users browsing this thread: 1 Guest(s)