Disable Weapon Data - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable Weapon Data (
/showthread.php?tid=522153)
Disable Weapon Data -
Rdx - 26.06.2014
Hi. Russians made sob version with two options: DisableOnFootData and DisableWeaponData. With this two options cheater can spawn any weapon and when he enter vehicle he can shot from this vehicle by drive thru (H key). Anybody knows how to detect it? GetPlayerWeapon is not working, i'm trying detect it by reason i onplayerdeath but with no result.
Re: Disable Weapon Data -
[MG]Dimi - 26.06.2014
I'm not sure but you can try with
OnPlayerGiveDamage And then check IsPlayerInAnyVehicle and GetPlayerVehicleSeat has to be different than 0. That means he is not driver and that he is shooting from car. Only possibility is that he is using H function.
Re: Disable Weapon Data -
Rdx - 26.06.2014
By this way i can block only shooting by H. I can't block it for all players on server, gang without possible to DT is not gang.
Re: Disable Weapon Data -
[MG]Dimi - 26.06.2014
Well you have variables to check if someone is in Gang. Just add if statement for that, too.
Re: Disable Weapon Data -
Rdx - 26.06.2014
No other way to detect that weapon?
Re: Disable Weapon Data -
Tamer - 26.06.2014
On the new versions of that cheat, OnPlayerTakeDamage is not called too.
Re: Disable Weapon Data -
Rittik - 26.06.2014
Under
OnPlayerUpdate
pawn Код:
if(GetPlayerWeapon(playerid) == 38) // "38" is for minigun, you can add any illegal weapon id here to check.
{
Kick(playerid);
}
Re: Disable Weapon Data -
Rdx - 26.06.2014
Quote:
Originally Posted by Rittik
Under OnPlayerUpdate
pawn Код:
if(GetPlayerWeapon(playerid) == 38) // "38" is for minigun, you can add any illegal weapon id here to check. { Kick(playerid); }
|
GetPlayerWeapon is not working when u use this cheat.
Re: Disable Weapon Data -
Rdx - 29.06.2014
I'm trying to detect it by getting player animation (drive by anim) but it's not working in vehicles -.-.
Any other ideas?