Blockland Forums > Modification Help
Talk as someone els command
Xalos:
--- Quote from: Ipquarx on July 20, 2011, 09:08:02 PM ---oh hell no.
This is much simpler:
--- Code: ---function serverCmdfaketalk(%client, %victim, %msg)
{
if(%client.isSuperAdmin)
serverCmdmessageSent(findClientByName(%victim), %msg);
}
--- End code ---
MUCH simpler.
--- End quote ---
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
Nexus:
Unless you are a sneaky client that does
--- Code: ---commandtoserver('talk', "victim", "The entire message is in one argument trololo");
--- End code ---
Katadeus:
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.
Crown2:
--- Quote from: Katadeus on July 21, 2011, 09:15:39 AM ---functionServerCmdGodSays(%client, %word1, %word2, %word3)
{
if(%client.isHost)
{
%msg = (%word1 SPC %word2 SPC %word3);
messagesent.
--- End quote ---
Lol wtf :nes:
Bloxxed:
--- Quote from: Katadeus on July 21, 2011, 09:15:39 AM ---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.
--- End quote ---
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.