ChampaRando
Active member
Yo. Just got back to SAMP for like 10 days in holidays haha. Anyways, I have a silly question to ask.
Does a NOP exist for "GetPlayerWeapon" and/or "GetPlayerWeaponData" SA-MP functions? I just looked through this big list of NOPs we have on this forum and there was nothing for this particular one.
My friend has a DM server and we were just trying to exploit the anti cheat honestly. Just something to do whilst we are bored in isolation lol. Because the script checks for weapon hacks like this;
if (Player's weapon is in SQL Database "validWeapons" && GetPlayerWeapon(weaponID") {{ yes this isnt the exact code but this is the logic}}. I was thinking, in order to NOT make this IF statement fire, we can't really interfere with server's database, but can certainly fake GetPlayerWeapon. So if the second condition becomes false, anti cheat stops lol.
Does a NOP for that exist? (and this is done to have fun really, I barely even play nowadays lol).
Another thing I was thinking was, is there a way I can actually use a weapon but fake that, by sending packets that im actually not SHOOTING from for example a deagle but by thumb? So in logic example,
On player shot, my client sends I shot by punch/hand/thumb, but in reality I actually shot a deagle? But I am thinking, if I do this, that just means shooting by deagle is pointless because to the server packets, I just hit by hand so damage is negligble. Am I right? So meaning, GetPlayerWeapon will return I have weapon ID 0 (thumb). But then that would mean server interprets that as just a punch and so no big damage is done to HP? True or would this work?
Does a NOP exist for "GetPlayerWeapon" and/or "GetPlayerWeaponData" SA-MP functions? I just looked through this big list of NOPs we have on this forum and there was nothing for this particular one.
My friend has a DM server and we were just trying to exploit the anti cheat honestly. Just something to do whilst we are bored in isolation lol. Because the script checks for weapon hacks like this;
if (Player's weapon is in SQL Database "validWeapons" && GetPlayerWeapon(weaponID") {{ yes this isnt the exact code but this is the logic}}. I was thinking, in order to NOT make this IF statement fire, we can't really interfere with server's database, but can certainly fake GetPlayerWeapon. So if the second condition becomes false, anti cheat stops lol.
Does a NOP for that exist? (and this is done to have fun really, I barely even play nowadays lol).
Another thing I was thinking was, is there a way I can actually use a weapon but fake that, by sending packets that im actually not SHOOTING from for example a deagle but by thumb? So in logic example,
On player shot, my client sends I shot by punch/hand/thumb, but in reality I actually shot a deagle? But I am thinking, if I do this, that just means shooting by deagle is pointless because to the server packets, I just hit by hand so damage is negligble. Am I right? So meaning, GetPlayerWeapon will return I have weapon ID 0 (thumb). But then that would mean server interprets that as just a punch and so no big damage is done to HP? True or would this work?
Last edited: