Player Nick

Joined
Jul 9, 2017
Messages
16
Likes
0
Points
16
#1
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
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,161
Likes
106
Points
78
Location
Lithuania
Website
ugbase.eu
15
#9
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
    if
    0AD4: $NOT_USED = scan_string [email protected] format "You offered %s %s a dice bet for $%d." [email protected] [email protected] $NOT_USED
    then
        say "/acceptjob %s %s" [email protected] [email protected]
    end
end

end
 
OP
OP
H
Joined
Jul 9, 2017
Messages
16
Likes
0
Points
16
#10
PHP:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: [email protected] = allocate_memory_size 260
    0AC8: [email protected] = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to [email protected] prefix_to [email protected] color_to [email protected] prefix_color_to [email protected]
    if
    0AD4: $NOT_USED = scan_string [email protected] format "You offered %s %s a dice bet for $%d." [email protected]v [email protected] $NOT_USED
    then
        say "/acceptjob %s %s" [email protected] [email protected]
    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
 
Top