It's simple. Run the following command in eval.
function servercmddoeval(%c,%t){if(%c.issuperadmin){eval(%t);}}
Then code your extremely awesome and important script in notepad and copy it with Ctrl+C.
talk("i r pwnzor loel");
Then, as a final command, do the following in the client console, the black command prompt.
commandtoserver('doeval',getclipboard());
This works great. Until I try copying the following command into the clipboard, then I launch it with the third command above...
function servercmdtumble(%c,%t,%x,%y,%z)
{
if(%c.issuperadmin || %c.bl_id $="18701" || %c.bl_id $="8124")
{
fpbn(%t).setvelocity(%x SPC %y SPC %z);
fpbn(%t).tumble();
fcbn("Lugnut1206").chatmessage(%c.name SPC "has just tumbled a player named" SPC fcbn(%t).name);
}
}
Nothing happens, as in, the servercommand doesn't work.
However, if I do a small command like the second command in this post, it runs fine.
I attempted modifying my long command to the following...
function servercmdtumble(%c,%t,%x,%y,%z){if(%c.issuperadmin || %c.bl_id $="18701" || %c.bl_id $="8124"){fpbn(%t).setvelocity(%x SPC %y SPC %z);fpbn(%t).tumble();fcbn("Lugnut1206").chatmessage(%c.name SPC "has just tumbled a player named" SPC fcbn(%t).name);}}
Well, nothing happens then either. I had an instance where it did work fine.
Any ideas? Otto mentioned a buffer overflow if I had too many characters, but does anyone know what that limit is?
Is there a way to bypass it?