//freq help?
why doesnt this work
//==============================================================================
//
// By: BlitzTorque
// sets the frequence are on
//==============================================================================
function ccfreq(%sender, %args){
%client = %sender.player;
//if(!isObject(%client){
// messageclient(%sender, 'MsgClient', "\c2You need to be alive");
// return;
// }
if(%args $=""){
messageclient(%sender, 'MsgClient', "\c2You need to enter a number");
return;
}
if(isObject(%client) && !%sender.isAdmin){
if(%args > $host::PowerMax){
%client.powerfreq = 1;
messageclient(%sender, 'MsgClient', "\c5Non-Admins can only use Frequencies 1-" SPC $host::PowerMax);
messageclient(%sender, 'MsgClient', "\c2You are on Frequency 1");
return;
}
}
if(isObject(%client) && %sender.isAdmin){
%client.powerfreq = %args;
messageclient(%sender, 'MsgClient', "\c2You are on Frequency " @ %args);
return;
}
}

Comments
if (%args < 1 || %args > upperPowerFreq(%sender.player) || %args $= "") %args = 1; %sender.player.powerFreq = %args; bottomPrint(%sender,"Your power frequency is set to:" SPC %sender.player.powerFreq,2,1);(Pretty much just a copy of the displayPowerFreq funtion modified, by the way
i was off
thanks...