lol, so the server keep u spawned even when you're not logged in
I tried using the isDialogResponded snippet from
@Parazitas, but I failed, maybe he can make using it
try it:
PHP:
{$CLEO .cs}
0000:
repeat
wait 0
until 0AFA:
CONST
COOLDOWN = 50
END
while true
wait 0
if and
0B4C: samp is_dialog_active -1
31@ == FALSE
then
alloc 0@ 248
alloc 1@ 248
0BD8: samp get_dialog_caption 0@
0BD7: samp get_dialog_text 1@
if and
0C29: $NOT_USED = stristr string1 0@ string2 "Влизане"
0C29: $NOT_USED = stristr string1 1@ string2 "{FFFFFF}Добре Дошъл"
then
31@ = TRUE
end
free 0@
free 1@
end
if and
31@ == TRUE
0B61: samp is_local_player_spawned
then
if 0B4C: samp is_dialog_active -1
then
//do nothing
else //wait dialog close
wait COOLDOWN
0AF9: samp say_msg "/protect"
wait COOLDOWN
0AF9: samp say_msg "/helmet"
wait COOLDOWN
0AF9: samp say_msg "/togmsg"
wait COOLDOWN
0AF9: samp say_msg "/clothes"
wait COOLDOWN
0AF9: samp say_msg "/sgchange"
wait COOLDOWN
31@ = FALSE
end
end
end