Author Topic: Talk as someone els command  (Read 1548 times)

Edit: Problem Solved
« Last Edit: July 19, 2011, 11:09:27 AM by xcruso »

Code: [Select]
function servercmdtalk(%client, %name, %word1, %word2, %word3, %word4, %word5, %word6, %word7, %word8, %word9, %word10)
{
   if(%client.issuperadmin)
      servercmdmessagesent(findclientbyname(%name), trim(%word1 SPC %word2 SPC %word3 SPC %word4 SPC %word5 SPC %word6 SPC %word7 SPC %word8 SPC %word9 SPC %word10));
}


Code: [Select]
function servercmdtalk(%client, %name, %word1, %word2, %word3, %word4, %word5, %word6, %word7, %word8, %word9, %word10)
{
   if(%client.issuperadmin)
      servercmdmessagesent(findclientbyname(%name), trim(%word1 SPC %word2 SPC %word3 SPC %word4 SPC %word5 SPC %word6 SPC %word7 SPC %word8 SPC %word9 SPC %word10));
}
oh hell no.
This is much simpler:
Code: [Select]
function serverCmdfaketalk(%client, %victim, %msg)
{
      if(%client.isSuperAdmin)
            serverCmdmessageSent(findClientByName(%victim), %msg);
}
MUCH simpler.

Nexus' is better, yours only supports 1 word.

oh hell no.
This is much simpler:
Code: [Select]
function serverCmdfaketalk(%client, %victim, %msg)
{
      if(%client.isSuperAdmin)
            serverCmdmessageSent(findClientByName(%victim), %msg);
}
MUCH simpler.

Don't try to one-up people unless you know what you're talking about fully.


His command:

/talk N00b Hi there!
N00b: Hi there!

Your command:

/talk N00b Hi there!
N00b: Hi

Unless you are a sneaky client that does
Code: [Select]
commandtoserver('talk', "victim", "The entire message is in one argument trololo");

Is that possible, or do you have to compress the message, like if you do

functionServerCmdGodSays(%client, %word1, %word2, %word3)
{
       if(%client.isHost)
       {
              %msg = (%word1 SPC %word2 SPC %word3);
              messagesent

Naww, that wouldn't work, and it's pretty pointless anyway.

functionServerCmdGodSays(%client, %word1, %word2, %word3)
{
       if(%client.isHost)
       {
              %msg = (%word1 SPC %word2 SPC %word3);
              messagesent.
Lol wtf  :nes:

Is that possible, or do you have to compress the message, like if you do

functionServerCmdGodSays(%client, %word1, %word2, %word3)
{
       if(%client.isHost)
       {
              %msg = (%word1 SPC %word2 SPC %word3);
              messageall('',"God says" SPC %msg SPC"!");


Naww, that wouldn't work, and it's pretty pointless anyway.

functionServerCmdGodSays(%client, %word1, %word2, %word3)
{
       if(%client.isSuperAdmin)
       {
              %msg = (%word1 SPC %word2 SPC %word3);
              messageall('',"\c6God says\c3" SPC %msg SPC"\c6!");
   }
   else
   {
   messageclient(%client,'',"\c6You're not a \c3Super Admin\c6!");
}
I was bored.
Also, there is no isHost in default, you'd have to make it.