function serverCmdreset(%client)
{
%client.Roleplay["Class"] = "NONE";
%client.Roleplay["Race"] = "NONE";
%client.Roleplay["Gold"] = 100;
%client.Roleplay["EXP"] = 0;
%client.Roleplay["LEvel"] = 1;
%client.player.setPlayerScale("1 1 1");
%client.Roleplay["EXPreq"] = 30;
%client.ammo["Bow"] = 15;
messageClient(%client, '', "\c6You reset.");
}
function BowImage::onreload(%this, %obj, %slot)
{
if(%this.ammo["Bow"] > 0)
%obj.ammo["bow] += %this.ammo["Bow"];
%this.ammo["Bow"] -= %this.ammo["Bow"];
if(%obj.ammount$="")
%obj.ammount=0;
%obj.ammo["Bow"]+=%obj.ammount;
echo("reload?");
centerPrint(%obj.client, "<just:right>0/15");
}
function BowImage::checkammo(%this,%obj,%slot)
{
if(%obj.ammo["Bow"]$="")%obj.ammo["BOw"]=$ammo::default["Bow"];
if(%obj.ammo["Bow"])%obj.setimageammo(%slot,1);
centerPrint(%obj.client, "<just:right>"@%obj.ammo["Bow"]@"/15");
}
doesn't work. doesn't add the ammo