Author Topic: / Commands  (Read 2169 times)

How can you make it so when you do / (name here) it will show text in the chat log only for the person that types / (name here) ?

Quote
function serverCmdSlashCmd(%client){
   messageClient(%client, "", "Message");
}
« Last Edit: December 16, 2007, 05:08:17 PM by Randy »


In SlashCommand to I put the / or just the command?


Thanks again

*Gives *Name Here*

Last question, where do I place this?

Create a .cs file in your Add-Ons folder, and remember to enable it.

They wont work, where are the problems?


function serverCmdEoB(%client){
   messageClient("", "http://www.blokstudio.co.nr/smf");
}





and





function serverCmdRules(%client){
   messageClient("", "No Spamming
Watch Your Languge
Do Not Ask For Admin
Do Not Ask To Load

Breaking Any Rules Will Result In A Kick Or Ban!");
}

Code: [Select]
messageClient(%client,"", "Message");

Oops, I kinda fused MessageAll and MessageClient =/

Also, for new lines you need to use \n

Bettar /EoB script: clickable link:
Code: [Select]
function serverCmdEoB(%client) {
     messageClient(%client, "Go to: <a:http://www.blokstudio.co.nr/smf>http://www.blokstudio.co.nr");
}

Bettar /EoB script: clickable link:
Code: [Select]
function serverCmdEoB(%client) {
     messageClient(%client, "Go to: <a:http://www.blokstudio.co.nr/smf>http://www.blokstudio.co.nr");
}
Thanks :)

*Gives E-Taco

Also, can someone fix this one:


function serverCmdRules(%client){
   messageClient("", "No Spamming
Watch Your Languge
Do Not Ask For Admin
Do Not Ask To Load

Breaking Any Rules Will Result In A Kick Or Ban!");
}
   

Code: [Select]
function serverCmdRules(%client){
   messageClient(%client,"", "No Spamming\nWatch Your Languge\nDo Not Ask For Admin\nDo Not Ask To Load\nBreaking Any Rules Will Result In A Kick Or Ban!");
}
messageClient requires a client to message, you didn't have one listed. %client is whomever uses the function.
\n is a new line, the way you had it set up it would all be on one line.