Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

SA:MP script


  • Please log in to reply
4 replies to this topic
k0r3k7
  • Members
  • 3 posts
  • Last active: Sep 28 2012 10:44 AM
  • Joined: 28 Sep 2012
Hello there. I am new here i need a simple script for gta san andreas. Sorry for my english.
I need a script that make the character in game to punch 4-5 times in-game every 20 minutes. And if it's possible to make this action to repeat until i stop the autohotkey.
Thanx a lot.

Wingfat
  • Members
  • 932 posts
  • Last active: Feb 14 2013 08:48 PM
  • Joined: 23 Aug 2004
what key do you press to make him punch?
;Press F8 to start script  & F9 to kill it
F8::
Send, PunchKey
Sleep, 1200000  ;1000 = 1 second
Return
F9::ExitApp
also you might need to change the Send to SendPlay or a ControlSend depending on how you are running the game. exapmle is it full screen? or windowed?

k0r3k7
  • Members
  • 3 posts
  • Last active: Sep 28 2012 10:44 AM
  • Joined: 28 Sep 2012

what key do you press to make him punch?

;Press F8 to start script  & F9 to kill it
F8::
Send, PunchKey
Sleep, 1200000  ;1000 = 1 second
Return
F9::ExitApp
also you might need to change the Send to SendPlay or a ControlSend depending on how you are running the game. exapmle is it full screen? or windowed?

Key for punching is left click. It's full screen game. Thanx for helping me. I need a script that click's 5-6 times every 20-25 minutes.

Edited: in script that you posted i changed "Punchkey" with LButton but it doesn't work

Wingfat
  • Members
  • 932 posts
  • Last active: Feb 14 2013 08:48 PM
  • Joined: 23 Aug 2004
;Press F8 to start script  & F9 to kill it
F8::
Send, {Click 5} ; sends five left clicks
Sleep, 1200000  ;1000 = 1 second
Return
F9::ExitApp
Full Screen games is an issue with AHK though a lot of the time.. you might be need to try
ControlClick
Sends a mouse button or mouse wheel event to a control.

k0r3k7
  • Members
  • 3 posts
  • Last active: Sep 28 2012 10:44 AM
  • Joined: 28 Sep 2012

;Press F8 to start script  & F9 to kill it
F8::
Send, {Click 5} ; sends five left clicks
Sleep, 1200000  ;1000 = 1 second
Return
F9::ExitApp
Full Screen games is an issue with AHK though a lot of the time.. you might be need to try
ControlClick
Sends a mouse button or mouse wheel event to a control.


When I press F8 click's just one time and after that nothing happens. i've changed time from 1200000 to 5000 to see if it's working, but it doesn't.. Any ideas?