i need your help with gun ammo
#1

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
Reply
#2

When you are giving the weapon, just set that ammo to 99999 like so

pawn Код:
GivePlayerWeapon(playerid, 21, 99999);
Reply
#3

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?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)