HELP

I am pretty new to C#

I have written a cheat with the help of tutorials but I just have one problem, I'm not sure how to "Re-use" functions.

e.g. - I want to use Godmode & Inf Armor. I type 1 to activate Godmode but it does not allow further typing.

I would like to activate more options without having to restart the program.



Thanks!



CODE:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace SlavScriptsAC
{
class Program
{
//Health
public static int PlayerBase = 0x509B74;
public static int Health = 0xF8;
//Armor
public static int Armor = 0xFC;
//Pistol Ammo
public static int PAmmo = 0x13C;
//Carbine Ammo
public static int CAmmo = 0x140;
//Shotgun Ammo
public static int SGAmmo = 0x144;
//Machine Gun Ammo
public static int MGAmmo = 0x148;
//Sniper Ammo
public static int SAmmo = 0x14C;
//Assault Rifle Ammo
public static int ARAmmo = 0x150;
//Grenade Ammo
public static int GAmmo = 0x158;
//Knife Time Limit
public static int TBK = 0x160;
//Fast Reload
public static int PT = 0x164;
public static int CT = 0x168;
public static int SGT = 0x16C;
public static int MGT = 0x170;
public static int ST = 0x174;
public static int ART = 0x178;
public static int GT = 0x180;


static void Main(string[] args)
{
VAMemory vam = new VAMemory("ac_client");
Console.WriteLine("---SlavScripts v2.0---");
Console.WriteLine("");
Console.WriteLine("[1] Godmode");
Console.WriteLine("[2] Infinite Armor");
Console.WriteLine("");
Console.WriteLine("[3] Infinite Pistol Ammo");
Console.WriteLine("[4] Infinite Carbine Ammo");
Console.WriteLine("[5] Infinite Shotgun Ammo");
Console.WriteLine("[6] Infinite Machine Gun Ammo");
Console.WriteLine("[7] Infinite Sniper Ammo");
Console.WriteLine("[8] Infinite Assault Rifle Ammo");
Console.WriteLine("[9] Infinite Grenades");
Console.WriteLine("");
Console.WriteLine("[10] No Knife Limit");
Console.WriteLine("[11] Fast Pistol");
Console.WriteLine("[12] Fast Carbine");
Console.WriteLine("[13] Fast Shotgun");
Console.WriteLine("[14] Fast Machine Gun");
Console.WriteLine("[15] Fast Sniper");
Console.WriteLine("[16] Fast Assault Rifle");
Console.WriteLine("[17] Fast Grenades");
string answer = "";
answer = Console.ReadLine();

if (answer == "1")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + Health;
vam.WriteInt32((IntPtr)address, 6969);
}
}
else if (answer == "2")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + Armor;
vam.WriteInt32((IntPtr)address, 6969);
}
}
else if (answer == "3")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + PAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "4")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + CAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "5")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + SGAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "6")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + MGAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "7")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + SAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "8")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + ARAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "9")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + GAmmo;
vam.WriteInt32((IntPtr)address, 69);
}

}
else if (answer == "10")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + TBK;
vam.WriteInt32((IntPtr)address, 1);
}

}
else if (answer == "11")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + PT;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "12")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + CT;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "13")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + SGT;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "14")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + MGT;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "15")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + ST;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "16")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + ART;
vam.WriteInt32((IntPtr)address, 0);
}

}
else if (answer == "17")
{
int LocalPlayer = vam.ReadInt32((IntPtr)PlayerBase);

while (true)
{
int address = LocalPlayer + GT;
vam.WriteInt32((IntPtr)address, 0);
}

}


}
}
}