AHK SAMP UdfEx (0.3.7)

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#1
i made extended version of SAMP UDF

additional stuff:

Code:
getPlayerPos(dwId)
getPedById(dwId)
getIdByPed(dwPed)
getStreamedInPlayersInfo()
getClosestPlayerId()
callFuncForAllStreamedInPlayers(func,dist=0x7fffffff)
getDist(pos1,pos2)
getPedCoordinates(dwPED)
getPedCarInfo(dwPED)
getTargetPed()
sendDeath()
restart()
setmarkers()
DOWNLOAD in ATTACHMENT

INSTALL:
-download zip
-get autohotkey, default install, learn basics
-look into script to know what it does
-(if you have 64bit Windows, then go to autohotkey folder, launch "Ahk2Exe.exe" and select at "Base file" ansi, or unicode32 and close )
-compile testscript.ahk by rightclick with mouse and click "Compile Script"
-test ingame
- make your own script
-enjoy  :urtheman:

password: ugbase.eu


:fuck_yea:
 

Attachments

0x688

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,076
Likes
54
Points
98
#2
Re: [AHK] samp udfEx

Approved, but please Upload these File(s) also as attachments so it fits our Rules.
 
Joined
May 4, 2014
Messages
6
Likes
0
Points
1
1
#3
Re: [AHK] samp udfEx

Very nice udf. But the ped functions just give me a 0 / -1 as value, would be nice if you could help me.

Code:
.::
testovar := getClosestPlayerId()
SendInput tTest: %testovar%{enter}
return
This code gives me -1 even if i'm staying next to players.
 
OP
OP
D

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#4
Re: [AHK] samp udfEx

mhh.. there was a bug  :dont_care:
now it should work

added:
Code:
getIdByPed(dwPed)
getTargetPed()
 

hasin1

Well-Known Member
Joined
Jan 22, 2014
Messages
55
Likes
0
Points
56
#7
Re: [AHK] samp udfEx

I ask this question on behalf of this community
WHAT IS THIS FOR? :excited_troll:
 

Monstercat

Well-Known Member
Joined
Feb 26, 2013
Messages
281
Likes
1
Points
66
Website
www.loadingmods.blogspot.de
#8
Re: [AHK] samp udfEx

; #### SAMP UDF R9.1 ####
; SAMP Version: 0.3z R1
; Written by Chuck_Floyd
; https://github.com/FrozenBrain
; Edit by Suchty112
; https://github.com/Suchty112
; Modified by: paul-phoenix
; https://github.com/paul-phoenix
; Modified by: Agrippa1994
; https://github.com/agrippa1994
; Do not remove these lines.
; ####################

Need to say more?
 
OP
OP
D

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#9
Re: [AHK] samp udfEx

hasin1 link said:
I ask this question on behalf of this community
WHAT IS THIS FOR? :excited_troll:
by using autohotkey you can create keybinders and more, ahk is very simple and there are many build in functions
adding this "library" you can create powerful samp keybinders with a shitload of functions
i think that you have a great advantage on rp servers

its like simple sampfuncs  :somuchwin:
 
OP
OP
D

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#10
Re: [AHK] samp udfEx

[member=23785]Prefixobjekt[/member]

he asked:
can you do that it gets the coordinates all over the map
because it only works for local players
I don't have tested this in detail but it depends on the server setting i think
if 'ShowPlayerMarkers' is set to 0 or 2 it only works for local players
maybe 0x688 knows better
 
OP
OP
D

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#15
Re: [AHK] samp udfEx

added
sendDeath()      ---send to the server that you are dead, but you can walk around etc
restart()        ---reconnect to server without restart gta
+now in ENGLISH  :dont_care:
+more comments, better example

btw. if anyone can help me and include more functions THAT WOULD BE GREAT !!!11  :eek:h_stop_it_u:
 
Joined
Sep 5, 2014
Messages
8
Likes
0
Points
1
1
#16
Re: [AHK] samp udfEx

Nice work. Please add a function wich convert 3D position to Screen coordinates.

0x71DAB0 - bool __cdecl CScreen__transform3DTo2DPoint(RwV3d *vPoint, RwV2d *vScreen)
Maybe youre able to do that.
 
OP
OP
D

democrazy

Well-Known Member
Joined
Aug 4, 2014
Messages
65
Likes
0
Points
56
#17
Re: [AHK] samp udfEx

[member=26281]Dark_Angel[/member]
attachment

I made some overlay script example
it needs some improval though, because i dont understand this math  :hellno:
 

Attachments

Joined
Sep 5, 2014
Messages
8
Likes
0
Points
1
1
#20
Re: [AHK] samp udfEx

Also please add a Freemouse function.
( So you can see and move cursor, when you call the function again all is normal again )

//edit:
The information i have about that:


Control of a Visible Cursor:

0x7481CD : Nop 2 Bytes
0x7481CF : Nop 6 Bytes

Now with ShowCursor in a C++ environment you can control if the cursor shows on the screen, it still sticks in the middle with a SetCursorPos and i'm currently working on fixing that (EDIT: done)

Free Cursor Pos:

0x74542B : Nop 1 Byte
0x74542C : Nop 1 Byte
0x74542D : Nop 6 Bytes

Prevents the game from setting the cursor pos to the middle of the screen, however it still reacts to the mouse movements by positioning the camera, i'm currently working on a fix for that
 
Top