i need your help with gun ammo - 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: i need your help with gun ammo (
/showthread.php?tid=416981)
i need your help with gun ammo -
akki - 19.02.2013
i want to know how to set the ammo of a gun to infinity because gun with infinity ammo's does not show the ammo numbers bellow the gun icon.
and if it is not showing below it. then i can make an anti-cheat for the guns,
please help
Re: i need your help with gun ammo -
Nuke547 - 19.02.2013
When you are giving the weapon, just set that ammo to 99999 like so
pawn Код:
GivePlayerWeapon(playerid, 21, 99999);
Re: i need your help with gun ammo -
akki - 19.02.2013
Quote:
Originally Posted by Nuke547
When you are giving the weapon, just set that ammo to 99999 like so
pawn Код:
GivePlayerWeapon(playerid, 21, 99999);
|
ok in that case as soon as the player ammo reaches the number in which the ammo is shown he would be banned?
Re: i need your help with gun ammo -
Nuke547 - 19.02.2013
Quote:
Originally Posted by akki
ok in that case as soon as the player ammo reaches the number in which the ammo is shown he would be banned?
|
Right, you can use the GetPlayerWeaponData function and check to see if they have 99999 ammo in their gun. Otherwise, they are hacking