Author Topic: Getting clan tags in message all  (Read 2088 times)

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

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.

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: [Select]
if(%t1 < 40) {
     ballinatorShellDebris.lifetime = %t1; }
else {
     ballinatorShellDebris.lifetime = 40; }

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

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

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: [Select]
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;
}
}

Code: [Select]
messageClient(%client,'',"\c3Please enter a value between \c60 \c3and \c620");
return;

But I want to add:

Code: [Select]
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?

I can't edit T_T.


Ignore the second code thing I have there about the please enter a value, I forgot to delete it.

Modify button please.

Also I need to be able to have an isFile check for the file defined in the chat, if you don't understand what I mean:

I have a certain script that does something with the file you define, I want it to check if the file you entered exists, neither if(isFile(Add-Ons/%.cs));, if(isFile(Add-Ons/ @ %t1 @.cs)); or if(isFile(Add-Ons/@ %t1.cs"); work.

Dammit Badspot...

Nevermind the post right above this one, I figured it out myself.

But I do need the limiter and isFile combination thing.

5 posts in a row!

All problems have been solved.