So now I have this and it still doesn't place the bomb on the gmap:
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
if (player.bombs > 0) {
if (player.dir == 0){ putbomb(1, player.x + 0.5 % 64, player.y - 1 % 64); }
if (player.dir == 1){ putbomb(1, player.x - 1.5 % 64, player.y + 1 % 64); }
if (player.dir == 2){ putbomb(1, player.x + 0.5 % 64, player.y + 2.5 % 64); }
if (player.dir == 3){ putbomb(1, player.x + 2.5 % 64, player.y + 1 % 64); }
player.bombs -= 1;
}
}