doofbla (07-28-2010),Drake (07-28-2010),HaX4LiFe! (07-28-2010),missrandomspam2 (07-28-2010)
here is a simple source for a afk-bot ingame only activationg with F12
what this does is simple spam a message each minute and 100 miliseconds
keeps you from getting kicked ... i wanted to go hardcore but yeah, i enjoyed the gameplay to much so its abit to late now :3
[php]
double CountAFK = 0;
bool AFKBot = false;
/*AFK COMMANDS*/
bool WalkForward = false;
bool WalkLeft = false;
bool WalkRight = false;
bool WalkBackward = false;
bool Jump = false;
bool CrouchWalk = false;
double WalkingTimer = 0;
/*END AFK COMMAND*/
void main()
{
while(true)
{
PushToConsole("ShowFps",1);
/*================================================= =========
-------------------------[AFK-BOT]--------------------------
================================================== ========*/
if(GetAsyncKeyState(VK_F12)<0){//AFKBot
Sleep(120);
if(VJumpUp){ // 0- deactivated
AFKBot = false;
} else { // 1+ activated
if(CountAFK++ > 6000)
{
WalkForward = true;
while(WalkForward)
{
keybd_event(VK_RETURN,0,0,0);
keybd_event('P',0,0,0);
keybd_event('S',0,0,0);
keybd_event('P',0,0,0);
keybd_event('i',0,0,0);
keybd_event('s',0,0,0);
keybd_event('o',0,0,0);
keybd_event(VK_RETURN,0,0,0);
if(CountAFK>=30)
{
WalkForward = false;
break;
}
else
{
CountAFK++;
Sleep(100);
}
break;
}
}
AFKBot = true;
}
}
// end of deletion
CountAFK++;
Sleep(1);
}
}
[/php]
here by i say R.I.P. myself
@ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist
neuest gift from Yura~Chan:
https://bakyurayuu.deviantar*****m/#/d372taw
2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
come on you know that don't want to push that ordinary button
doofbla (07-28-2010),Drake (07-28-2010),HaX4LiFe! (07-28-2010),missrandomspam2 (07-28-2010)
ahh cool pspiso ur really good at codingi like ur edits hehe
If i also can make such a code what do you think how long will i take to code a real hack? just a hotkey? just the easiest one? dunno what it is
1 Question what does the "sleep" do ?
lolit let him "SLEEP" for 0.12 seconds
wow good code ... usefull for making a killspammer![]()
yeah i added a sleep to it so that if you press the button it doesnt freaks out because 1 press on F12 means like a million signals a second so it does this (spam):
ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_O N_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON _OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_ OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_O FF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OF F_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF _ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_O N_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON _OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_ OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_O FF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OFF_ON_OF F_ON_OFF
actually it is:
1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_ 1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_0_1_ 0_1_0_1_0_1_0_1_0_
to prevent that from happening you need a sleep so that you can press it normally without any difficulties.
ahh okay this is a good idea xDD i just recognize now what u wanted to do with the sleep xD