CLEO Help How to add nick system to a cleo?

CLEO related
Status
Not open for further replies.

Excelds

Active member
Joined
Apr 17, 2021
Messages
101
Reaction score
11
Location
Earth
Hi can someone help me to add a nick system to cleo. Example: If i make the cleo to work for people using the nick "nickasd" , and they don't use it, they use something different like "nickdsa" i want the cleo to not work. Thanks.
 

batonkal

Active member
Joined
May 6, 2017
Messages
100
Reaction score
17
Location
Bosnia and Herzegovina
PHP:
alloc 1@ 32
0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 1@ = get_player_nickname 0@

if or
    0C29: $NOT_USED = stristr string1 1@ string2 "nick1" //allowed nick 1
    0C29: $NOT_USED = stristr string1 1@ string2 " nick2" //allowed nick 2
    0C29: $NOT_USED = stristr string1 1@ string2 "nick3" //allowed nick 3
then
    wait 0
else
    0A8C: write_memory 0x58E26B size 1 value 0 virtual_protect 0 //your crash code
end
 
Status
Not open for further replies.
Top