Some questions

logarithm

Member
Joined
Sep 16, 2018
Messages
7
Reaction score
0
I've made my own auto c for samp and it has :

Code:
#IfWinActive GTA:SA:MP

When I use SAMPCAC (sampcac.xyz), it changes the name of GTA:SA:MP to another random name. So i have to edit the script and change the GTA:SA:MP to the right name.
Is there a way to make it automaticly changes the name as same as the gta_sa name?

Also, i wanna make my script just do the bind on desert eagle, and when i use the other weapons, it doesnt bind anything. I've heard about "gui" thing. But, i really dont know how to use it, even know what it is. Can you guys please help me? :)
 

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
Also, i wanna make my script just do the bind on desert eagle,

GetPlayerWeaponId() -> 24 (Desert Eagle) (check if weapon id is 24 -> execute code else nothing.

or in case you dont use the udf thingy, read the memory of GTA (cped pointer 0xB6F5F0 + (cur weap id offset) 0x740).
 
Top