Hi all,
I got a menu file for weapons. All scriptmenuresponses are 1 ,2 till 41.
normally u have
Etc for all responses.Code:if(response == 1) self giveweapon("greasegun_mp");
Is there a smarter way to do this? I was thinking about this
And thenCode:weapon1="greasegun_mp"; weapon2="mp40_mp"; weapon3="pps42_mp"; weapon4="ppsh_mp"; weapon5="sten_mp"; weapon6="thompson_mp"; weapon7="mac10_mp"; weapon8="ak74_mp"; weapon9="mp5_mp"; weapon10="ump45_mp"; weapon11="p90_mp"; weapon12="bar_mp"; weapon13="bren_mp"; weapon14=""; weapon15="fg42_mp"; weapon16="rpd_mp"; weapon17="acr_mp"; weapon18="g43_mp"; weapon19="m1garand_mp"; weapon20="m1carbine_mp"; weapon21="mp44_mp"; weapon22="svt40_mp"; weapon23="r700_mp"; weapon24="barret_mp"; weapon25="kar98k_mp"; weapon26="enfield_mp"; weapon27="mosing_nagant_mp"; weapon28="springfield_mp"; weapon29=""; weapon30="m4"; weapon31="aug_mp"; weapon32="sig_mp"; weapon33="ak47_mp"; weapon34="famas_mp"; weapon35="shotgun_mp"; weapon36="winchester_mp"; weapon37="db_mp"; weapon38="benneli_mp"; weapon39="kar98k_sniper_mp"; weapon40="enfield_scope_mp"; weapon41="mosin_nagant_sniper_mp";Something like that. But that doesnt work :P Who can help me out?Code:self giveweapon(weapon+response);



Reply With Quote