function restore_12()
{
while (player == NULL) {wait (1);}
if (weapon_1 == 1) // if the player has picked up weapon1
{
ent_create ("weapon1.mdl", NULL, pistol); // create the pistol again
}
if (weapon_2 == 1) // if the player has picked up weapon1
{
ent_create ("weapon2.mdl", NULL, machine_gun); // create the gun again
}
gun_loaded = 1; // make sure that it is loaded
gun_select(); // and select it
}