string level_str = <Outside.WMB>; // give file names in angular brackets
string level_str2 = <Outside2.WMB>; // give file names in angular brackets
function level_choose(level_var)
{
if(level_var==1){ level_load(level_str);return;}
if(level_var==2){ level_load(level_str2);return;}
}
function oomoomi_func_before()
{
ent_remove(me);
ammo_count_save();///<----------- this function will save current ammo
loading_out();
}
function oomoomi_func_after(npp.x,npp.y,npp.z,levelpan_change)
{
wait(10);
//start to create weapons
PreloadDeagle();
wait(1);
PreloadAk47();
wait(1);
PreloadShotgun();
wait(1);
PreloadRailgun();
wait(1);
Preloadshamshir();
wait(1);
gun_select();
vec_Set(player.x,vector(npp.x,npp.y,npp.z));
player.pan=levelpan_change;
ammo_count_load();/////<--------- I add this function here load my ammo
}
//////////////////
function func_level_to_river()
{
oomoomi_func_before();
level_choose(2);
oomoomi_func_after(3347,-11514,615,55);
}
action level_to_river
{
changer_setting();
my.event=func_level_to_river;
}