[C++] Jonizal's jump and shoot scripts release for anyone

Forum rules
- Ask questions about or share code from languages other than Source Engine scripting.
- Start new topic titles with the code language in brackets (i.e. [C#], [C++], [PHP], etc.)
Jonizal

[C++] Jonizal's jump and shoot scripts release for anyone

Post by Jonizal » Tue Sep 11, 2012 12:24 pm

These are script i coded on the fly...dont judge there simple and crappy but work...
(shoot script is commented out)
i repeat
(the shoot script is commented out)

Code: Select all

// Fast Click.cpp : main project file.

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

//int main()
//{
//while (true)
//{
	//Sleep(50);
	//if (GetAsyncKeyState(0x31))
///	{
//	mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
//	Sleep(50);
//	mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
//	Sleep(50);
//	}
//	}
//}

int main()
{
while (true)
{
Sleep(20);
if (GetAsyncKeyState(VK_RBUTTON))
{
{
keybd_event(VK_SPACE, 0x39, 0, 0);
Sleep(60);
keybd_event(VK_SPACE, 0x39, KEYEVENTF_KEYUP, 0);
//keybd_event(VK_SPACE,0,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
cout << "Jump ";
}
}
}
}
Last edited by Jonizal on Wed Sep 12, 2012 11:17 am, edited 2 times in total.

awesomedude
Former Server Admin
Posts: 804
Joined: Sun Jan 15, 2012 6:37 pm

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by awesomedude » Tue Sep 11, 2012 12:49 pm

This doesn't look like a nice script..
Shit happens

Jonizal

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Jonizal » Tue Sep 11, 2012 1:00 pm

Do you know C++?
If you look at it, it checks to see if your holding down your right mouse button then if you are it makes you jump........
like I said its simple ans works nothing fancy shmancy
Last edited by Jonizal on Wed Sep 12, 2012 11:18 am, edited 1 time in total.

awesomedude
Former Server Admin
Posts: 804
Joined: Sun Jan 15, 2012 6:37 pm

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by awesomedude » Tue Sep 11, 2012 5:35 pm

I don't know C++, although I wish I did. Good job Jonizal
Shit happens

Jonizal

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Jonizal » Tue Sep 11, 2012 11:15 pm

Thanks Man

User avatar
fire1000678
750+ Posts
750+ Posts
Posts: 930
Joined: Fri Feb 03, 2012 8:10 pm

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by fire1000678 » Wed Sep 12, 2012 7:43 am

Code: Select all

Use the code button next time. It makes your post much nicer.
As for the script, nice.
上手ですか?

Image

"Just as the tree and the earth need each other for life, so is the body and the soul, for without the other, one is nothing."

Ingame Name: [GR]人生Positively Shinobi{A}

Jonizal

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Jonizal » Wed Sep 12, 2012 11:16 am

The post has been fixed

User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by killman2639 » Tue Sep 25, 2012 7:04 pm

I think you never heard of /* */
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.

Jonizal

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Jonizal » Tue Sep 25, 2012 7:22 pm

lol i have ;D

Anonymous

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Anonymous » Wed Sep 26, 2012 6:45 am

Code: Select all

bind "mouse2" "+jump"
There, fixed it for you.

User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by shadowslayer » Thu Sep 27, 2012 2:54 pm

Stefan wrote:

Code: Select all

bind "mouse2" "+jump"
There, fixed it for you.
Or...

Code: Select all

bind "mousewheelup" "+jump"
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me

Jonizal

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Jonizal » Sat Oct 06, 2012 10:12 pm

That Sucks......
If you want to scroll constantly or press mouse2 all the time...be my guest
:p

Peter Brev

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Peter Brev » Sun Dec 02, 2012 3:26 pm

shadowslayer wrote:
Stefan wrote:

Code: Select all

bind "mouse2" "+jump"
There, fixed it for you.
Or...

Code: Select all

bind "mousewheelup" "+jump"
I rather use mwheeldown.

Demon
Server Admin
Posts: 3161
Joined: Tue Nov 15, 2011 6:30 am

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Demon » Sun Dec 02, 2012 4:05 pm

Cpt. Goomba wrote:
shadowslayer wrote:
Stefan wrote:

Code: Select all

bind "mouse2" "+jump"
There, fixed it for you.
Or...

Code: Select all

bind "mousewheelup" "+jump"
I rather use mwheeldown.
Agreed more comfortable then up.

Peter Brev

Re: [C++] Jonizal's jump and shoot scripts release for anyon

Post by Peter Brev » Sun Dec 02, 2012 4:31 pm

I tryed mwheelup: just make me confuse.

Locked