Is there some thing like "$Player.iteminhand = Gun" that I could do to change crosshairs?
Also, for the Ammo, I'm thinking something like this (Be warned, I don't script):
function gunImage::onFire(%this,%obj,%slot)
{
$Pref:Ammo:GunMax=56;
$Pref:Ammo:GunClip=7;
$Pref:Ammo:GunReload=240; //miliseconds
if($Pref:Ammo:GunAmmo > 0)
{
$Pref:Ammo:GunAmmo = ($Pref:Ammo:GunAmmo - 1);
}
else if($Pref:Ammo:GunAmmoTotal > $Pref:Ammo:GunClip)
{
$Pref:Ammo:GunAmmoTotal = ($Pref:Ammo:GunAmmoTotal - $Pref:Ammo:GunClip);
$Pref:Ammo:GunAmmo=7;
}
else
{
messageClient("","\c6 You need more ammo!);
}
}