[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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

lol i have ;D
Anonymous

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

Post by Anonymous »

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 »

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 »

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 »

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 »

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 »

I tryed mwheelup: just make me confuse.