ok, i was looking at scripts for add-ons, (cuz i wanna make one(and i was looking for ideas)) and i found this.
Server:
//we need the gun add-on for this, so force it to load
%error = ForceRequiredAddOn("Weapon_Gun");
if(%error == $Error::AddOn_Disabled)
{
//A bit of a hack:
// we just forced the gun to load, but the user had it disabled
// so lets make it so they can't select it
GunItem.uiName = "";
}
if(%error == $Error::AddOn_NotFound)
{
//we don't have the gun, so we're screwed
error("ERROR: Weapon_GunsAkimbo - required add-on Weapon_Gun not found");
}
else
{
exec("./Weapon_AkimboGun.cs");
lets look closer...
if(%error == $Error::AddOn_NotFound)
{
//we don't have the gun, so we're screwed
i lol'd