Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void userchats(HMessage obj)
- {
- var args = new userchats.OnUserChats(obj);
- string packet = args.textmessage;
- string[] partipals = packet.Split(';');
- if (partipals[0] == "c" || partipals[0] == "s")
- {
- int numberofpartipals = 0;
- while (partipals[numberofpartipals] != "")
- {
- numberofpartipals = numberofpartipals + 1;
- }
- int currentnumber = 2;
- string test = partipals[1];
- string[] ushortconfig = test.Split(':');
- if (ushortconfig[0] == "u")
- {
- var packetmsg = new HMessage(ushort.Parse(ushortconfig[1]));
- while (currentnumber < numberofpartipals)
- {
- string currentline = partipals[currentnumber];
- string[] PofP = currentline.Split(':');
- if (PofP[0] == "i")
- {
- packetmsg.Append(Int32.Parse(PofP[1].Replace("'r'", string.Empty)));
- }
- else if (PofP[0] == "s")
- {
- packetmsg.Append(PofP[1].Replace("'r'", string.Empty).ToString());
- }
- else if (PofP[0] == "b")
- {
- if (PofP[1] == "0")
- {
- bool test2 = false;
- packetmsg.Append(test2);
- }
- else if (PofP[1] == "1")
- {
- bool test2 = true;
- packetmsg.Append(test2);
- }
- }
- currentnumber = currentnumber + 1;
- }
- byte[] _packetmsg = packetmsg.ToBytes();
- this.Extension.Contractor.SendToServer(_packetmsg);
- }
- }
- else if (args.textmessage == "breaknb")
- {
- Gamble_Cheat_v1._0.Settings1.Default.ssUseLever = ushort.Parse("-1");
- Gamble_Cheat_v1._0.Settings1.Default.ssWalk = ushort.Parse("-1");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement