(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
nice release !
(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:IsPlayerModder ?Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(07-19-2019 - 06:39 PM)ask_blk Wrote:Thanks brother!(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
nice release !
(07-19-2019 - 06:43 PM)NoNameV2345 Wrote:Updated Post(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:IsPlayerModder ?Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
(07-19-2019 - 06:56 PM)RoyaleSprx Wrote:(07-19-2019 - 06:39 PM)ask_blk Wrote:Thanks brother!(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
nice release !
(07-19-2019 - 06:43 PM)NoNameV2345 Wrote:Updated Post(07-19-2019 - 05:27 PM)RoyaleSprx Wrote:IsPlayerModder ?Quote:This code read the variable "SET_PLAYER_MAX_ARMOUR" and kick the players with edited variable
Code:void AutoKick_Modders2()
{
if (AutoKickMod2)
{
for (int i = 0; i < 16; i++)
{
int id = GET_PLAYER_PED(i);
if (id > 0 && id != PLAYER_PED_ID())
{
if (IsPlayerModder(i))
{
KickNonProHost(i);
}
}
}
}
}
Code:
i think better is
if (GET_PLAYER_MAX_ARMOUR(i) > 50)...
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Users browsing: 4 Guest(s)