CLEO Help Player Nick

CLEO related
Status
Not open for further replies.

Harrisonwells

Member
Joined
Jul 9, 2017
Messages
18
Reaction score
0
How do I get the player full name? then if ever the script reads it like this

"Sebastian Ruru offered you a job for $500"
Basically that chat will be read, also his name will be added for example
"Sebastian Ruru offered you a job for $500"
script will type - /acceptjob Sebastian Ruru
 

Harrisonwells

Member
Joined
Jul 9, 2017
Messages
18
Reaction score
0
Take pic from chat, that be better for helping

dM25A4x.png


I am trying to make it like
Make sure it has the player name, any player name that offers me that thing - same command will make me crash
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 1@ = allocate_memory_size 260
    0AC8: 2@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
    if
    0AD4: $NOT_USED = scan_string 1@ format "You offered %s %s a dice bet for $%d." 5@v 6@v $NOT_USED
    then
        say "/acceptjob %s %s" 5@v 6@v
    end
end

end
 

Harrisonwells

Member
Joined
Jul 9, 2017
Messages
18
Reaction score
0
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 1@ = allocate_memory_size 260
    0AC8: 2@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
    if
    0AD4: $NOT_USED = scan_string 1@ format "You offered %s %s a dice bet for $%d." 5@v 6@v $NOT_USED
    then
        say "/acceptjob %s %s" 5@v 6@v
    end
end

end


Can You teach me how to get nicknames ? IDK about %s %d can't find anything on google. or something is wrong with me
 
Status
Not open for further replies.
Top