[Not Solved] Help with weapon hack - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Not Solved] Help with weapon hack (
/showthread.php?tid=92850)
[Not Solved] Help with weapon hack -
Ben147 - 22.08.2009
im trying to make anti weapon cheat that if someone trying to summon weapon like deagle with cheats he will banned
that what i made but still its not working
Code:
GetPlayerWeaponData(i, 2, weaponid, ammo);
if ((weaponid == 24 || weaponid == 23) && (!SafeGivePlayerWeapon(i,weaponid, ammo)) )
{
blablaa.....
}
Re: [Not Solved] Help with weapon hack -
Ben147 - 22.08.2009
Will no one can help here?
Re: [Not Solved] Help with weapon hack -
Kyle - 22.08.2009
Code:
new weaponid = GetPlayerWeapon(playerid)
if (weaponid == 24 || weaponid == 23)
{
Ban(playerid);
}
Re: [Not Solved] Help with weapon hack -
XCultz - 22.08.2009
i need an anti wep & money hack
Re: [Not Solved] Help with weapon hack -
coole210 - 22.08.2009
pawn Code:
#define GivePlayerWeapon lala_GivePlayerWeapon // PUT INSIDE GM
[pawn]public lala_GivePlayerWeapon(playerid,weaponid,ammo)
{
if(weaponid == WEAPONID || weaponid == WEAPONID)
{
reset there weps and kick/ban
}
else
{
GIvePlayerWeapon(playerid,weaponid,ammo);
return 1;
} // untested, might have to fix [..:MAKE INTO INCLUDE:..]