CLEO Help how to check the target name in cleo?

CLEO related
Status
Not open for further replies.

downloadstuff

Active member
Joined
Apr 4, 2015
Messages
82
Reaction score
0
Hello.. i want to edit my personal aimbot and i want to check the targeted name.

How do i check if for example the target name is == "example" ?

Or perhaps provide me a code that can check based on a .txt list file.

Any help would be appreciated. I just want to make my aimbot not lock into my "friends" and i want also to add this to my triggerbot to not shoot when a friend passes in front of my aim. thanks

snippets would be usefull, but if you can provide me a quick example .cs i would appreciate too.
 

downloadstuff

Active member
Joined
Apr 4, 2015
Messages
82
Reaction score
0
Opcode.eXe link said:
Ehh... just get the Target players name
and 0C14: strcmp string1 0@ string2 "FRIEND_NICK"
??

thanks opcode  i believe 0@ is the actor name string and returns true if it is correct.

Now how would i get his name from the actor handler ?

example:

0AD2: 0@ = player $PLAYER_CHAR targeted_actor

ok 0@ is the actor. Now how do i extract his name?


Second question:

How would i compare it to every line in a text file? thanks a lot opcode <3
 

downloadstuff

Active member
Joined
Apr 4, 2015
Messages
82
Reaction score
0
Opcode.eXe link said:
https://ugbase.eu/releases-6/%28cleo-plugin%29-dynamic-vars/msg59803/#msg59803

:stoned:

thank you <3.

One last question. you are using strcmp. but thats to compare how do i check if the string in 5@ is inside thestring 4@

ex test case:  if "test"  inside "thisisatest" . result = true

i tried

0C14: strstr string1 5@ string2 4@

but didnt work.


EDIT: found it.

0C18: 2@ = strstr string1 0@ string2 1@

if anyone needs it .

loool i started to learn to search the opcode .txt file --' sorry and thanks opcode <3
 
Status
Not open for further replies.
Top