Okay, hello everyone. I work on a gun script for my server but the problem is with the ammunitions

It say "No ammo" !
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat = "/ammo"){
clientr.ammo += 10;
clientr.capacityammo = 5;
clientr.maxcapacityammmo = 5;
setplayerprop #P2,holst_usp45.png;
replaceani walk,holst_gunwalk;
replaceani idle,holst_gunidle;
setplayerprop #c,Ammo added;
}
}
function onWeaponFired() {
if (clientr.ammo < 0 && clientr.capacityammo != 0) {
shoot(player.x + vecx(player.dir), player.y + vecy(player.dir), player.z, (playerdir + 1) * pi / 2, NULL, NULL, "holst_bullet", NULL);
setani("holst_gunfire", NULL);
clientr.ammo -= 1;
clientr.capacityammo -= 5;
freezeplayer(0.75);
} else {
setplayerprop #c,No ammo!;
}
}
function onActionProjectile() {
player.hearts -= 6;
}
//#CLIENTSIDE
function onKeyPressed( code, key )
{
if ( key == "e" || key == "E" )
{
setani("holst_gunreload", NULL);
}