Sunday, September 16, 2007

Send a flag

By: Someone (but I had this one too, before ^_^)
What this cheat will do is simulate your flag being stolen by someone and thus sent to them, causing them to drop their flag, and pick up yours. You can send people bad flags, or OO and force them inside buildings with this cheat.
To do this, edit composeDefaultKey.cxx and add these lines of code:

if(message=="/send") {
const Player *Other = LocalPlayer::getMyTank()->getRecipient();
if(Other)
{
serverLink->sendTransferFlag(LocalPlayer::getMyTank()->getId(),Other->getId());
}
}

In front of your other slash commands. (See previous tutorials)
And that's it. PM "/send" to anybody to send them the flag.

9 comments:

person said...

Does the recipitant have to be holdong Thief?

phasmophage said...

No, they don't. They can be holding any flag or no flag. If they're holding a flag, they'll drop the flag they have and get the one you send them.

person said...

And one more thing. Exactly how shouldthis cheat fit together with the teleport cheat? Like does it go before, or after the..um.. lol, im not so good with this.

phasmophage said...

It can go before or after any other commands. Just make sure that if you put it after another command, you put an "else" in front of "if (message=="/send")". Your first command should start like "if (message=="/something")" and all following commands should look like "else if (message=="/somethingelse")"
Hope this helps.
-Phaz

randomdude said...

I have a question. So i have /jump, sending me up, and i have /down, sending me back down, but i am missing one thing: /stop :P.

As in, is it possible to literally stop in mid air, and stay in the postition you are at, and drive around on thin air, as if you are on a block? I tried playing around, but all i can make it do is stop in the air and start falling again.

Thanks

phasmophage said...

Yeah, that's actually my "no gravity" cheat. I'll post that next.

person said...

Still havent managed to enable the /send cheat and /behind cheat at the same time. See anything ive done wrong?

if (sendIt) {
std::string message = hud->getComposeString();
else if(message=="/send") {
const Player *Other = LocalPlayer::getMyTank()->getRecipient();
if(Other)
{
serverLink->sendTransferFlag(LocalPlayer::getMyTank()->getId(),Other->getId());
}
}

if(message=="/behind") {
(stuff that would take up to much room to post.)
else if (message.length() > 0) {

person said...
This comment has been removed by the author.
phasmophage said...

See this line here?

else if(message=="/send") {

Take out the "else". It's the first "if" statement in that section of code, so it shouldn't have "else". However this line:

if(message=="/behind") {

Should have an "else" in front of it.

If the problem is with "/behind" I'll have to see the "(stuff that would take up to much room to post.)"
Hope this helps.
-Phaz