ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1949

How to detect invincibility?

by EL_Dev - 08-13-2019 - 01:50 PM
#1
Quote: int A_LVL = PLAYER::GET_PLAYER_MAX_ARMOUR(selectedPlayer);
int H_LVL = ENTITY::GET_ENTITY_HEALTH(selectedPlayer);
int UIs2 = ENTITY::GET_ENTITY_MODEL(PLAYER::GET_PLAYER_PED(selectedPlayer));
int UIs = UI::_0x95C4B5AD23(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(UIs2));
if (Read_Global(1582015 + (306 * UIs)) > 1 || A_LVL > 50 || H_LVL > 328)
{
if (PLAYER::GET_PLAYER_INVINCIBLE(selectedPlayer) == true)
{
sprintf(ModderChar, "~b~true", UIs);
}
else { sprintf(ModderChar, "~g~false", UIs); }
}
This code cannot detect other players' invincibility....
This account is currently banned
Ban reason: Leeching/spamming
Reply
#2
How does this detect invincible? if Armour and health are set to standard like most menu's are apart from older ones? and whats the global? I guess it check's the vehicle some how?
Reply
#3
(08-14-2019 - 01:34 AM)vectrac20tsri Wrote: How does this detect invincible? if Armour and health are set to standard like most menu's are apart from older ones?  and whats the global? I guess it check's the vehicle some how?

Detect if the player is invincible.

Health and armor are old and unusable
This account is currently banned
Ban reason: Leeching/spamming
Reply
#4
Use a native, i mean g mode detection has been dropped here so many times, just have a look lol...
2021 Best Be Better Then 2020
Reply
#5
(08-14-2019 - 12:02 PM)trinity7 Wrote: Use a native, i mean g mode detection has been dropped here so many times, just have a look lol...

what?
This account is currently banned
Ban reason: Leeching/spamming
Reply
#6
(08-14-2019 - 03:53 PM)EL_Dev Wrote:
Too Many Quotes (Click to View)

what?

Why are you checking a global and health? Just use the IS_PLAYER_INVINCIBLE native alone
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Multi
Reply
#7
(08-14-2019 - 12:02 PM)trinity7 Wrote: Use a native, i mean g mode detection has been dropped here so many times, just have a look lol...

this guy only makes leaks of inutile codes lmao, don't give him advice that if he already does this by copying codes that are not from him I am afraid to see a code made by him Finna Heart
==========================================================================
PHP,  HTML coder
C++,  C# coder
Royale SPRX owner/developer
[Image: busbunny.png]
ToXiCk-$x$x#5002
==========================================================================
Reply
#8
(08-15-2019 - 02:26 AM)RoyaleSprx Wrote:
Too Many Quotes (Click to View)

this guy only makes leaks of inutile codes lmao, don't give him advice that if he already does this by copying codes that are not from him I am afraid to see a code made by him Finna Heart
what?
I don't know what this guy is saying looooooooooooooooooooooooooooooooooooooooool.

(08-14-2019 - 07:37 PM)pdb Wrote:
Too Many Quotes (Click to View)

Why are you checking a global and health? Just use the IS_PLAYER_INVINCIBLE native alone
thank you!!
This account is currently banned
Ban reason: Leeching/spamming
Reply

Users browsing: 1 Guest(s)