So much wrong with it.
Sorry to break my leaving vowel, but this was needed.
function servercmdSingleMode(%client)
{
%WEAPONSNAME.datablock = weapon;
messageclient(%client,'',"\c1weapon now in Single Fire mode.");
}
function servercmdthreeMode(%client)
{
%WEAPONSNAME.datablock = weaponb;
messageclient(%client,'',"\c1weapon now in Three Shot Fire mode.");
}
function servercmdautoMode(%client)
{
%WEAPONSNAME.datablock = weaponc;
messageclient(%client,'',"\c1weapon now in Automatic Fire mode.");
}
That might help.