i think you need to get the button id.
|
|
I added this costume option into friend list and made it only visible for MOD+ in client sided.
How do i make those options work server sided?
It works 100% perfect if i add this code client sided:
Code:if (l == 638) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::xteletome " + victim + ""; sendPacket(103); } } if (l == 637) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::xteleto " + victim + ""; sendPacket(103); } } if (l == 643) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::unmute " + victim + ""; sendPacket(103); } } if (l == 642) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::mute " + victim + ""; sendPacket(103); } } if (l == 645) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::unban " + victim + ""; sendPacket(103); } } if (l == 644) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::ban " + victim + ""; sendPacket(103); } } if (l == 647) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::unip " + victim + ""; sendPacket(103); } } if (l == 646) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::ipban " + victim + ""; sendPacket(103); } } if (l == 648) { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@[email protected]"); if (k2 != -1) { long l4 = Class50.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) continue; k3 = i4; break; } String victim = aStringArray1082[k3]; //int commandLength = victimComplete.length() + victim.length(); aString887 = "::kick " + victim + ""; sendPacket(103); } }
Q3MDVK56GGJ

i think you need to get the button id.
Nvm ^

Like Josh said. There are options sending a packet and there's no need to do it server sided if it works on the client correctly and how you want it.
But I show you a way of editing server side...
You see, it sends a packet and a string value
103 is commands packet and it's applying ::xteletome commands.Code:aString887 = "::xteletome " + victim + ""; sendPacket(103);
If you want to edit it server side then you can add code to the command server side but clicking the buttons wont work server side.
thankas ill just add it server side!
Q3MDVK56GGJclick the buttons on ur server and look on ur cmd it should say actionbutton: #### go into clicking buttons and replace old friends list button with the new one.
| « Thieving bug | [PI] PVP problems » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |