AHK SAMP UdfEx (0.3.7)

democrazy

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

you cant start scripting without looking into AHK documentation
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Re: [AHK] samp udfEx

Does someone have a GetPlayerWeaponName() or GetPlayerWeaponID() function like GetTargetHP() ?
 

Swagy

Active member
Joined
Oct 25, 2013
Messages
35
Reaction score
0
Re: [AHK] samp udfEx

What should I do to create a script that everytime I aim a gun at someone it informs me his name ?
 

AnalFatal

Active member
Joined
Sep 16, 2014
Messages
27
Reaction score
0
Re: [AHK] samp udfEx

[member=29067]whoonga[/member]
returns the item number like 348 = deagle
Code:
GetWeaponId()
{
    If(!checkHandles())
    return 0

   c := readDWORD(hGTA, ADDR_CPED_PTR)
   If(ErrorLevel) {
   		ErrorLevel := ERROR_READ_MEMORY
   		return 0
   }
   id := readMemory(hGTA, c + 0x740)
   If(ErrorLevel) {
   		ErrorLevel := ERROR_READ_MEMORY
   		return 0
   }

   return id
}
 

democrazy

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

ok i updated to 0.3.7 have fun

and added function setmarkers()
it will enable player markers blips
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Re: [AHK] samp udfEx

democrazy link said:
ok i updated to 0.3.7 have fun

and added function setmarkers()
it will enable player markers blips
:lol:
But i want to know how do you get the adress to read out the HP or Armour of the PED.
I want the same for the WeaponID like o.WeaponId
9ryy9jin.png
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

but you can get weaponid by ped ?
CPed +0x740
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

democrazy link said:
but you can get weaponid by ped ?
CPed +0x740
nah i want to read out the gun and other stuff with the dwRemoteplayerData, not with CPED
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

i added a simple blacklist script to my first post

it has simple commands:
Code:
/badd [id/name]      --add someone to blacklist
/bdel [id/name]      --delete somone from blacklist
/blist               --show all players on blacklist
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

i still search for the other scoreboard offsets
 

QGate

New member
Joined
Jun 14, 2015
Messages
1
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

How use getUsername() and getId()? Always ")" and "-1"
 

whoonga

Active member
Joined
Nov 6, 2014
Messages
52
Reaction score
0
Re: [AHK] samp UdfEx (0.3.7)

i still search for the other scoreboard offsets
 
Top