OnPlayerWeaponShoot
#1

Hi,

There is problem, When you shoot and OnPlayerWeaponShoot called with type hittype = 1 to player when shoot, not always you take damage, like using skin modifications, i'am making anti-god, and this is barrier for me, it's possible to check if onplayerweaponshoot, will hurt player, call onplayertakedamage or it's gta bugg, and impossible.
Reply
#2

This is getting ridiculous, please stop with these threads. Start testing, debugging, posting code. This section is for requesting help on code...
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
This is getting ridiculous, please stop with these threads. Start testing, debugging, posting code. This section is for requesting help on code...
I know right man! Finally someone understands me. I wrote a whole story at his thread about it and I bet he didn't even look at it. He's acting like a bot. You deserve some reputation man.

EDIT: Damn, I can't give you reputation because I already gave you. I'll do that once I can.
Reply
#4

You can just simply use OnPlayerWeaponShot since I noticed that OnPlayerTakeDamage doesnt get called sometimes in these cases.

I even used OnPlayerWeaponShot to make a reliable anti HP hack.

Example code
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ) {
    if(
hittype == BULLET_HIT_TYPE_PLAYER) {
        if(
IsPlayerConnected(hitid)) {
            
printf("%s was shot",GetName(hittid));
                        
//add custom health check here and there you go, simplest anti health hack
        
}
    }
    return 
1;

Reply
#5

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
You can just simply use OnPlayerWeaponShot since I noticed that OnPlayerTakeDamage doesnt get called sometimes in these cases.

I even used OnPlayerWeaponShot to make a reliable anti HP hack.

Example code
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ) {
    if(
hittype == BULLET_HIT_TYPE_PLAYER) {
        if(
IsPlayerConnected(hitid)) {
            
printf("%s was shot",GetName(hittid));
                        
//add custom health check here and there you go, simplest anti health hack
        
}
    }
    return 
1;

If you aren't aware of the bug with the callback, look it up.

Checking if the player is connected isn't needed, btw.
Reply
#6

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
If you aren't aware of the bug with the callback, look it up.

Checking if the player is connected isn't needed, btw.
What's the bug exactly?
Reply
#7

Problem is that, how i mention if player use skin modifications, when you shoot, onplayerweaponshoot could get called, how hp not lower, but player is not cheat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)