ok so i know that for multiplayer youre supposed to make the server authoritive and let it make all the important gameplay decisions.
so at the moment i have a reload weapon function, which all works perfectly. it checks that the player has ammo, the player reloads it then deducts the ammo and displays the new amount on the hud, so my question is how do i change the function or whatever to help prevent the player from cheating lets say reloading if they have no ammo.
so basically i want the server to check that the player has ammo remaining, has the right type of ammo, and then tell the player to reload. maybe a bool eg canPlayerReload so if true then the player has passed the server checks if false the player is trying to cheat dont let him reload.
here is my reload function