Blockland Forums > Modification Help

Getting clan tags in message all

Pages: (1/2) > >>

VerticalHorizon:

I need to know how to display someones name in the chat including their clan tags, %client.name only displays just that.. Their name.

VerticalHorizon:

It wont let me modify my post, but I forgot, I also need to know how I would got about setting it up so that ballinatorShellDebris.lifetim e = %t1; cannot have a value past 40.

Game master pro:

dump the clients null number, there's something like %client.ClanPrefix; that gives you it.

As for the second one you could do something like


--- Code: ---if(%t1 < 40) {
     ballinatorShellDebris.lifetime = %t1; }
else {
     ballinatorShellDebris.lifetime = 40; }

--- End code ---


Space Guy:

ballinatorShellDebris.lifetim e = (%t1 < 40 ? %t1 : 40);

It's %client.clanPrefix and %client.clanSuffix, I think.

VerticalHorizon:

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:


--- Code: ---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;
}
}
--- End code ---


--- Code: ---messageClient(%client,'',"\c3Please enter a value between \c60 \c3and \c620");
return;
--- End code ---

But I want to add:


--- Code: ---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;

--- End code ---

How would I go about adding both of those if's and else's to the command? Put the isFile before the function?

Pages: (1/2) > >>

Go to full version