(07-19-2019 - 05:19 PM)RoyaleSprx Wrote:why loop?This code spoof the variable "SET_PLAYER_MAX_ARMOUR" to 50 so that no menu will detect you as modderQuote:Code:if (MenuID)
{
SET_PLAYER_MAX_ARMOUR(PLAYER_ID(), 50);
}
else
{
SET_PLAYER_MAX_ARMOUR(PLAYER_ID(), 2440);
}
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:42 PM)NoNameV2345 Wrote:(07-19-2019 - 05:19 PM)RoyaleSprx Wrote:why loop?This code spoof the variable "SET_PLAYER_MAX_ARMOUR" to 50 so that no menu will detect you as modderQuote:Code:if (MenuID)
{
SET_PLAYER_MAX_ARMOUR(PLAYER_ID(), 50);
}
else
{
SET_PLAYER_MAX_ARMOUR(PLAYER_ID(), 2440);
}
to create a checkbox that has its on = 50 and its off = to the id of your menu there may be other ways to do it but this is one of the most optimal
(07-20-2019 - 05:48 PM)trinity7 Wrote: or u could just do this, no need to add toggles lol.....
PLAYER::SET_PLAYER_MAX_ARMOUR(PLAYER::PLAYER_ID(), SPOOF)); // Hook
int SPOOF = 50; // Variable
And then add individual options to change the value to what u want. for example
MenuOption("Menu Name");
switch (SwitchSelectedOption()) { case 1: { SPOOF = 1337; } break; } break; // Option u can do the rest ur self
but what are you hesitating about? I create a swithc to spoof a menu I think it's very silly the switch options made so that your menu is detected as another but I have something of a head, and I think before opening my mouth
==========================================================================
PHP, HTML coder
C++, C# coder
Royale SPRX owner/developer
ToXiCk-$x$x#5002
==========================================================================
(07-20-2019 - 05:52 PM)RoyaleSprx Wrote:(07-20-2019 - 05:48 PM)trinity7 Wrote: or u could just do this, no need to add toggles lol.....
PLAYER::SET_PLAYER_MAX_ARMOUR(PLAYER::PLAYER_ID(), SPOOF)); // Hook
int SPOOF = 50; // Variable
And then add individual options to change the value to what u want. for example
MenuOption("Menu Name");
switch (SwitchSelectedOption()) { case 1: { SPOOF = 1337; } break; } break; // Option u can do the rest ur self
but what are you hesitating about? I create a swithc to spoof a menu I think it's very silly the switch options made so that your menu is detected as another but I have something of a head, and I think before opening my mouth
or you could run it in an array
Users browsing: 1 Guest(s)