Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Key_IsDown
- public static string Key_IsDown(uint ClientNum)
- {
- uint NameInGame = 0x012320bc;
- uint Key_isDown = 0x01232075;
- uint Index = 0xB0C8;
- byte[] Key = new byte[3];
- GetMemoryR(Key_isDown + (Index * ClientNum), ref Key);
- string mystring = null;
- mystring = BitConverter.ToString(Key);
- string result = mystring.Replace("-", "");
- string result1 = result.Replace(" ", "");
- string key = result1;
- string KeyPressed = "";
- if (key == "000000")
- {
- KeyPressed = "Stand";
- }
- else if (key == "080C20")
- {
- KeyPressed = "[ ] + X + L1";
- }
- else if (key == "000224")
- {
- KeyPressed = "Crouch + R3 + [ ]";
- }
- else if (key == "008001")
- {
- KeyPressed = "R1 + L2";
- }
- else if (key == "082802")
- {
- KeyPressed = "L1 + L3";
- }
- else if (key == "002402")
- {
- KeyPressed = "X + L3";
- }
- else if (key == "000020")
- {
- KeyPressed = "[ ]";
- }
- else if (key == "000200")
- {
- KeyPressed = "Crouch";
- }
- else if (key == "004020")
- {
- KeyPressed = "R2 + [ ]";
- }
- else if (key == "000220")
- {
- KeyPressed = "[ ] + Crouch";
- }
- else if (key == "000100")
- {
- KeyPressed = "Prone";
- }
- else if (key == "400100")
- {
- KeyPressed = "Left + Prone";
- }
- else if (key == "000400")
- {
- KeyPressed = "X";
- }
- else if (key == "000004")
- {
- KeyPressed = "R3";
- }
- else if (key == "002002")
- {
- KeyPressed = "L3";
- }
- else if (key == "004000")
- {
- KeyPressed = "R2";
- }
- else if (key == "008000")
- {
- KeyPressed = "L2";
- }
- else if (key == "080800")
- {
- KeyPressed = "L1";
- }
- else if (key == "000001")
- {
- KeyPressed = "R1";
- }
- else if (key == "002006")
- {
- KeyPressed = "R3 + L3";
- }
- else if (key == "000204")
- {
- KeyPressed = "R3";
- }
- else if (key == "002202")
- {
- KeyPressed = "L3";
- }
- else if (key == "004200")
- {
- KeyPressed = "R2";
- }
- else if (key == "008004")
- {
- KeyPressed = "R3 + L2";
- }
- else if (key == "008200")
- {
- KeyPressed = "L2";
- }
- else if (key == "082902")
- {
- KeyPressed = "Prone + L1 + L3";
- }
- else if (key == "082906")
- {
- KeyPressed = "Prone + L1 + L3 + R3";
- }
- else if (key == "00C100")
- {
- KeyPressed = "Prone + R2 + L2";
- }
- else if (key == "00C000")
- {
- KeyPressed = "R2 + L2";
- }
- else if (key == "002206")
- {
- KeyPressed = "Crouch L3 + R3";
- }
- else if (key == "002222")
- {
- KeyPressed = "Crouch L3 + [ ]";
- }
- else if (key == "Up")
- {
- KeyPressed = "R2 + L2";
- }
- else if (key == "002122")
- {
- KeyPressed = "Prone + L3 + [ ]";
- }
- else if (key == "000420")
- {
- KeyPressed = "X + [ ]";
- }
- else if (key == "002106")
- {
- KeyPressed = "Prone + R3 + L3";
- }
- else
- {
- KeyPressed = key;
- }
- return KeyPressed;
- }
- public static string GetNames(int clientNum)
- {
- uint NameInGame = 0x012320bc;
- uint Index = 0xB0C8;
- string name;
- byte[] name1 = new byte[18];
- GetMemoryR(NameInGame + ((uint)clientNum * Index), ref name1);
- name = Encoding.ASCII.GetString(name1);
- name.Replace(Convert.ToChar(0x0).ToString(), string.Empty);
- return name;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement