PPC Code
.text:91B3E7A8 # ---------------------------------------------------------------------------
.text:91B3E7A8 lis r31, 1 # 0x1E250
.text:91B3E7AC ori r31, r31, 0xE250 # 0x1E250
.text:91B3E7B0 add r31, r1, r31
.text:91B3E7B4 lis r4, aKickOptions@ha # "Kick Options"
.text:91B3E7B8 addi r4, r4, aKickOptions@l # "Kick Options"
.text:91B3E7BC lis r3, 1 # 0x1E200
.text:91B3E7C0 ori r3, r3, 0xE200 # 0x1E200
.text:91B3E7C4 add r3, r1, r3
.text:91B3E7C8 bl sub_91B0B480
.text:91B3E7CC mr r4, r3
.text:91B3E7D0 mr r3, r31
.text:91B3E7D4 bl sub_91B0B4C8
.text:91B3E7D8 lis r3, dword_91B49950@ha
.text:91B3E7DC lwz r31, dword_91B49950@l(r3)
.text:91B3E7E0 lis r11, loc_91B21790@h
.text:91B3E7E4 addi r30, r11, loc_91B21790@l
.text:91B3E7E8 lis r29, 1 # 0x1E340
.text:91B3E7EC ori r29, r29, 0xE340 # 0x1E340
.text:91B3E7F0 add r29, r1, r29
.text:91B3E7F4 lis r28, 1 # 0x1E2F0
.text:91B3E7F8 ori r28, r28, 0xE2F0 # 0x1E2F0
.text:91B3E7FC add r28, r1, r28
.text:91B3E800 lis r10, aKickGHost@ha # "Kick ~g~(Host)"
.text:91B3E804 addi r4, r10, aKickGHost@l # "Kick ~g~(Host)"
.text:91B3E808 lis r3, 1 # 0x1E2A0
.text:91B3E80C ori r3, r3, 0xE2A0 # 0x1E2A0
.text:91B3E810 add r3, r1, r3
.text:91B3E814 bl sub_91B0B480
.text:91B3E818 mr r4, r3
.text:91B3E81C mr r3, r28
.text:91B3E820 bl sub_91B0B5B8
.text:91B3E824 mr r4, r3
.text:91B3E828 mr r3, r29
.text:91B3E82C mr r5, r30
.text:91B3E830 mr r6, r31
.text:91B3E834 bl sub_91B0FF10
.text:91B3E838 lis r9, dword_91B49950@ha
.text:91B3E83C lwz r31, dword_91B49950@l(r9)
.text:91B3E840 lis r8, loc_91B299E0@ha
.text:91B3E844 addi r30, r8, loc_91B299E0@l
.text:91B3E848 lis r29, 1 # 0x1E430
.text:91B3E84C ori r29, r29, 0xE430 # 0x1E430
.text:91B3E850 add r29, r1, r29
.text:91B3E854 lis r28, 1 # 0x1E3E0
.text:91B3E858 ori r28, r28, 0xE3E0 # 0x1E3E0
.text:91B3E85C add r28, r1, r28
.text:91B3E860 lis r7, aKickYOffHost@ha # "Kick ~y~(Off-Host)"
.text:91B3E864 addi r4, r7, aKickYOffHost@l # "Kick ~y~(Off-Host)"
.text:91B3E868 lis r3, 1 # 0x1E390
.text:91B3E86C ori r3, r3, 0xE390 # 0x1E390
.text:91B3E870 add r3, r1, r3
.text:91B3E874 bl sub_91B0B480
.text:91B3E878 mr r4, r3
.text:91B3E87C mr r3, r28
.text:91B3E880 bl sub_91B0B5B8
.text:91B3E884 mr r4, r3
.text:91B3E888 mr r3, r29
.text:91B3E88C mr r5, r30
.text:91B3E890 li r6, 2
.text:91B3E894 mr r7, r31
.text:91B3E898 li r8, 0x35 //0x35 = Offhost Kick
.text:91B3E89C bl sub_91B0F048
.text:91B3E8A0 lis r6, dword_91B49950@ha
.text:91B3E8A4 lwz r31, dword_91B49950@l(r6)
.text:91B3E8A8 lis r5, loc_91B299E0@ha
.text:91B3E8AC addi r30, r5, loc_91B299E0@l
.text:91B3E8B0 lis r29, 1 # 0x1E520
.text:91B3E8B4 ori r29, r29, 0xE520 # 0x1E520
.text:91B3E8B8 add r29, r1, r29
.text:91B3E8BC lis r28, 1 # 0x1E4D0
.text:91B3E8C0 ori r28, r28, 0xE4D0 # 0x1E4D0
.text:91B3E8C4 add r28, r1, r28
.text:91B3E8C8 lis r4, aKickRAdmin@ha # "Kick ~r~(Admin)"
.text:91B3E8CC addi r4, r4, aKickRAdmin@l # "Kick ~r~(Admin)"
.text:91B3E8D0 lis r3, 1 # 0x1E480
.text:91B3E8D4 ori r3, r3, 0xE480 # 0x1E480
.text:91B3E8D8 add r3, r1, r3
.text:91B3E8DC bl sub_91B0B480
.text:91B3E8E0 mr r4, r3
.text:91B3E8E4 mr r3, r28
.text:91B3E8E8 bl sub_91B0B5B8
.text:91B3E8EC mr r4, r3
.text:91B3E8F0 mr r3, r29
.text:91B3E8F4 mr r5, r30
.text:91B3E8F8 li r6, 2
.text:91B3E8FC mr r7, r31
.text:91B3E900 li r8, 0x9A //0x9A = Admin Kick
.text:91B3E904 bl sub_91B0F048
.text:91B3E908 lis r3, dword_91B49950@ha
.text:91B3E90C lwz r31, dword_91B49950@l(r3)
.text:91B3E910 lis r11, loc_91B299E0@ha
.text:91B3E914 addi r30, r11, loc_91B299E0@l
.text:91B3E918 lis r29, 1 # 0x1E610
.text:91B3E91C ori r29, r29, 0xE610 # 0x1E610
.text:91B3E920 add r29, r1, r29
.text:91B3E924 lis r28, 1 # 0x1E5C0
.text:91B3E928 ori r28, r28, 0xE5C0 # 0x1E5C0
.text:91B3E92C add r28, r1, r28
.text:91B3E930 lis r10, aKickBDev@ha # "Kick ~b~(Dev)"
.text:91B3E934 addi r4, r10, aKickBDev@l # "Kick ~b~(Dev)"
.text:91B3E938 lis r3, 1 # 0x1E570
.text:91B3E93C ori r3, r3, 0xE570 # 0x1E570
.text:91B3E940 add r3, r1, r3
.text:91B3E944 bl sub_91B0B480
.text:91B3E948 mr r4, r3
.text:91B3E94C mr r3, r28
.text:91B3E950 bl sub_91B0B5B8
.text:91B3E954 mr r4, r3
.text:91B3E958 mr r3, r29
.text:91B3E95C mr r5, r30
.text:91B3E960 li r6, 2
.text:91B3E964 mr r7, r31
.text:91B3E968 li r8, 0xD7 //0xD7 = Dev Kick
.text:91B3E96C bl sub_91B0F048
.text:91B3E970 b loc_91B40710
.text:91B3E974 # --------------------------------------------------------------------------
C++ Code
void OffhostKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0x35;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
void AdminKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0x9A;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
void DevKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0xD7;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
//They using a Triggerscript Event lol
.text:91B3E7A8 # ---------------------------------------------------------------------------
.text:91B3E7A8 lis r31, 1 # 0x1E250
.text:91B3E7AC ori r31, r31, 0xE250 # 0x1E250
.text:91B3E7B0 add r31, r1, r31
.text:91B3E7B4 lis r4, aKickOptions@ha # "Kick Options"
.text:91B3E7B8 addi r4, r4, aKickOptions@l # "Kick Options"
.text:91B3E7BC lis r3, 1 # 0x1E200
.text:91B3E7C0 ori r3, r3, 0xE200 # 0x1E200
.text:91B3E7C4 add r3, r1, r3
.text:91B3E7C8 bl sub_91B0B480
.text:91B3E7CC mr r4, r3
.text:91B3E7D0 mr r3, r31
.text:91B3E7D4 bl sub_91B0B4C8
.text:91B3E7D8 lis r3, dword_91B49950@ha
.text:91B3E7DC lwz r31, dword_91B49950@l(r3)
.text:91B3E7E0 lis r11, loc_91B21790@h
.text:91B3E7E4 addi r30, r11, loc_91B21790@l
.text:91B3E7E8 lis r29, 1 # 0x1E340
.text:91B3E7EC ori r29, r29, 0xE340 # 0x1E340
.text:91B3E7F0 add r29, r1, r29
.text:91B3E7F4 lis r28, 1 # 0x1E2F0
.text:91B3E7F8 ori r28, r28, 0xE2F0 # 0x1E2F0
.text:91B3E7FC add r28, r1, r28
.text:91B3E800 lis r10, aKickGHost@ha # "Kick ~g~(Host)"
.text:91B3E804 addi r4, r10, aKickGHost@l # "Kick ~g~(Host)"
.text:91B3E808 lis r3, 1 # 0x1E2A0
.text:91B3E80C ori r3, r3, 0xE2A0 # 0x1E2A0
.text:91B3E810 add r3, r1, r3
.text:91B3E814 bl sub_91B0B480
.text:91B3E818 mr r4, r3
.text:91B3E81C mr r3, r28
.text:91B3E820 bl sub_91B0B5B8
.text:91B3E824 mr r4, r3
.text:91B3E828 mr r3, r29
.text:91B3E82C mr r5, r30
.text:91B3E830 mr r6, r31
.text:91B3E834 bl sub_91B0FF10
.text:91B3E838 lis r9, dword_91B49950@ha
.text:91B3E83C lwz r31, dword_91B49950@l(r9)
.text:91B3E840 lis r8, loc_91B299E0@ha
.text:91B3E844 addi r30, r8, loc_91B299E0@l
.text:91B3E848 lis r29, 1 # 0x1E430
.text:91B3E84C ori r29, r29, 0xE430 # 0x1E430
.text:91B3E850 add r29, r1, r29
.text:91B3E854 lis r28, 1 # 0x1E3E0
.text:91B3E858 ori r28, r28, 0xE3E0 # 0x1E3E0
.text:91B3E85C add r28, r1, r28
.text:91B3E860 lis r7, aKickYOffHost@ha # "Kick ~y~(Off-Host)"
.text:91B3E864 addi r4, r7, aKickYOffHost@l # "Kick ~y~(Off-Host)"
.text:91B3E868 lis r3, 1 # 0x1E390
.text:91B3E86C ori r3, r3, 0xE390 # 0x1E390
.text:91B3E870 add r3, r1, r3
.text:91B3E874 bl sub_91B0B480
.text:91B3E878 mr r4, r3
.text:91B3E87C mr r3, r28
.text:91B3E880 bl sub_91B0B5B8
.text:91B3E884 mr r4, r3
.text:91B3E888 mr r3, r29
.text:91B3E88C mr r5, r30
.text:91B3E890 li r6, 2
.text:91B3E894 mr r7, r31
.text:91B3E898 li r8, 0x35 //0x35 = Offhost Kick
.text:91B3E89C bl sub_91B0F048
.text:91B3E8A0 lis r6, dword_91B49950@ha
.text:91B3E8A4 lwz r31, dword_91B49950@l(r6)
.text:91B3E8A8 lis r5, loc_91B299E0@ha
.text:91B3E8AC addi r30, r5, loc_91B299E0@l
.text:91B3E8B0 lis r29, 1 # 0x1E520
.text:91B3E8B4 ori r29, r29, 0xE520 # 0x1E520
.text:91B3E8B8 add r29, r1, r29
.text:91B3E8BC lis r28, 1 # 0x1E4D0
.text:91B3E8C0 ori r28, r28, 0xE4D0 # 0x1E4D0
.text:91B3E8C4 add r28, r1, r28
.text:91B3E8C8 lis r4, aKickRAdmin@ha # "Kick ~r~(Admin)"
.text:91B3E8CC addi r4, r4, aKickRAdmin@l # "Kick ~r~(Admin)"
.text:91B3E8D0 lis r3, 1 # 0x1E480
.text:91B3E8D4 ori r3, r3, 0xE480 # 0x1E480
.text:91B3E8D8 add r3, r1, r3
.text:91B3E8DC bl sub_91B0B480
.text:91B3E8E0 mr r4, r3
.text:91B3E8E4 mr r3, r28
.text:91B3E8E8 bl sub_91B0B5B8
.text:91B3E8EC mr r4, r3
.text:91B3E8F0 mr r3, r29
.text:91B3E8F4 mr r5, r30
.text:91B3E8F8 li r6, 2
.text:91B3E8FC mr r7, r31
.text:91B3E900 li r8, 0x9A //0x9A = Admin Kick
.text:91B3E904 bl sub_91B0F048
.text:91B3E908 lis r3, dword_91B49950@ha
.text:91B3E90C lwz r31, dword_91B49950@l(r3)
.text:91B3E910 lis r11, loc_91B299E0@ha
.text:91B3E914 addi r30, r11, loc_91B299E0@l
.text:91B3E918 lis r29, 1 # 0x1E610
.text:91B3E91C ori r29, r29, 0xE610 # 0x1E610
.text:91B3E920 add r29, r1, r29
.text:91B3E924 lis r28, 1 # 0x1E5C0
.text:91B3E928 ori r28, r28, 0xE5C0 # 0x1E5C0
.text:91B3E92C add r28, r1, r28
.text:91B3E930 lis r10, aKickBDev@ha # "Kick ~b~(Dev)"
.text:91B3E934 addi r4, r10, aKickBDev@l # "Kick ~b~(Dev)"
.text:91B3E938 lis r3, 1 # 0x1E570
.text:91B3E93C ori r3, r3, 0xE570 # 0x1E570
.text:91B3E940 add r3, r1, r3
.text:91B3E944 bl sub_91B0B480
.text:91B3E948 mr r4, r3
.text:91B3E94C mr r3, r28
.text:91B3E950 bl sub_91B0B5B8
.text:91B3E954 mr r4, r3
.text:91B3E958 mr r3, r29
.text:91B3E95C mr r5, r30
.text:91B3E960 li r6, 2
.text:91B3E964 mr r7, r31
.text:91B3E968 li r8, 0xD7 //0xD7 = Dev Kick
.text:91B3E96C bl sub_91B0F048
.text:91B3E970 b loc_91B40710
.text:91B3E974 # --------------------------------------------------------------------------
C++ Code
void OffhostKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0x35;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
void AdminKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0x9A;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
void DevKick
{
int NetworkOptions = selectedPlayer;
int Args[3];
Args[0] = 2;
Args[1] = NetworkOptions;
Args[2] = 0xD7;
TriggerScriptEvent(Args, 3, NetworkOptions);
}
//They using a Triggerscript Event lol