hello, i want to make a cleo script to auto-respond with player's name on chat when it's detecting a player's name.
image:

i want to auto reply on chat '/r Hello @%s! Welcome back!'
i tried to do this but it's not working, it has a visual bug when trying to connect to the server.
please help me here
image:

i want to auto reply on chat '/r Hello @%s! Welcome back!'
i tried to do this but it's not working, it has a visual bug when trying to connect to the server.
PHP:
{$CLEO .cs}
0000:
WHILE 8AFA:
WAIT 0
END
0AC8: 0@ = allocate_memory_size 260
0AC8: 1@ = allocate_memory_size 260
WHILE TRUE
WAIT 0
IF 0B61: samp is_local_player_spawned
THEN
0B75: samp get_chat_string 99 text_to 0@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
IF 0AD4: $NOT_USED = scan_string 0@ format "(Group) %s from your group has just logged in." 1@
THEN
0AD3: 2@ = format "/r Salut @%s! Bine ai revenit!" 1@
0AF9: samp say_msg 2@
WAIT 500
END
END
END
please help me here