05.09.2014, 05:29
@Pottus: They can add this directly in their gamemode in their OnPlayerWeaponShot callback, no need for variables or other things, it's pretty easy.
Thanks for reporting.
Quote:
Dosent work, pls fix it asap, it sends false alarms
Code:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ ) { if( hittype == BULLET_HIT_TYPE_PLAYER ) // Bullet Crashing uses just this hittype { if( !( 0 <= fX <= 20.0 ) || !( 0 <= fY <= 20.0 ) || !( 0 <= fZ <= 20.0 ) ) // a valid offset, it's impossible that a offset bigger than 20 is legit (also less than 0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear) { SendClientMessage(playerid, COLOR_RED, "AntiCheat: You have been kicked (Reason: crasher Detected)"); return 0; // let's desynchronize that bullet, so players won't crash } } return 1; } and it sends me that i am using the hack |
Quote:
Can you give me a debug of OnPlayerWeaponShot's parameters when it sends false alarms ? I don't see how the offset X, Y, Z can be bigger than 20. You are the only one who said that this is giving false positives.
EDIT: I guess that the offset CAN be less than 0 (Now that I think more of it, it seems possible, the 0,0,0 is in the center of the player. I changed the minimum offsets to -20. It should work perfectly now. http://forum.sa-mp.com/showthread.ph...26#post3186426 Yes, this is now perfect, feel free to ban them now. |