AHK SAMP UdfEx (0.3.7)

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
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

  • udfex 0.3.7.zip
    22.2 KB · Views: 997
  • blacklist.zip
    397.8 KB · Views: 462

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,116
Reaction score
167
Re: [AHK] samp udfEx

Approved, but please Upload these File(s) also as attachments so it fits our Rules.
 

MichaelKl

Member
Joined
May 4, 2014
Messages
6
Reaction score
0
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.
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
Re: [AHK] samp udfEx

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

added:
Code:
getIdByPed(dwPed)
getTargetPed()
 

hasin1

Active member
Joined
Jan 22, 2014
Messages
55
Reaction score
0
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
Reaction score
5
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?
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
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:
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
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
 

Prefixobjekt

Active member
Joined
Aug 1, 2014
Messages
55
Reaction score
0
Re: [AHK] samp udfEx

it works only if the playermarkers are shown

how to change it?
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
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:
 

Dark_Angel

Member
Joined
Sep 5, 2014
Messages
8
Reaction score
0
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.
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
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

  • samp_script.txt
    2.8 KB · Views: 195

Dark_Angel

Member
Joined
Sep 5, 2014
Messages
8
Reaction score
0
Re: [AHK] samp udfEx

Okay thank you :)
Arent you able to use the GTA intern function to convert this?
 

Dark_Angel

Member
Joined
Sep 5, 2014
Messages
8
Reaction score
0
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