Ok I got both of them to work, thanks a sh*t load you guys, one other thing is I want it to check if the ballinator .cs exists, AND use the if for the limiter, this is what the whole command looks like right now:
function serverCmdballTime(%client, %t1){
if(%t1 < 21 ) {
ballinatorShellDebris.lifetime = %t1;
messageClient(%client,'',"\c3Ballinator lifetime is now: \c6" @ %t1);
}
else
{
messageClient(%client,'',"\c3Please enter a value between \c60 \c3and \c620");
return;
}
}
messageClient(%client,'',"\c3Please enter a value between \c60 \c3and \c620");
return;
But I want to add:
if(isFile(Add-Ons/Weapon_Ballinator.cs)){
what happens, plus the limiter here
}
else
{
messageClient(@client,','"\c3Please download \c0The Ballinator \c3from the Blockland forums to use this command");
return;
How would I go about adding both of those if's and else's to the command? Put the isFile before the function?