11.12.2010, 06:04
Quote:
can't really detect the people who don't lose ammo without actually watching them. |
1. Get info about current ammo (new ammoStatus1 // just an variable example)
2. Remove 1 bullet from current ammo (ammoStatus1 -= 1)
3. Get info about current ammo (new ammoStatus2 // just an variable example)
4. Compare ammoStatus2 with ammoStatus1
> If they are same > POSSIBLE hack > Recheck! (for 2 times, if all are same, its a hack!)
> If there is less > Ammo gets lower = not hack
> If there is more > playe might buyed a gun or picked it up > Recheck!
5. If everything is okay, return 1 bullet to current ammo.
No time to write the code :P