So, I had this problem like a month ago or smth, now I managed to find this code, but still cant figure out how to check if it contains "SMS from" so It knows to autoreply
Here is my code:
Hope I'm not too noobish...
Here is my code:
Code:
{$CLEO .cs}
{$INCLUDE SF}
0000:
repeat
wait 0
until 0AFA: is_samp_available
0BE3: raknet setup_incoming_rpc_hook @on_new_chatline
:First
wait 0
if
31@ == 1
then
31@ = 0
0AF9: samp say_msg "Woah."
end
jump @First
:on_new_chatline
0BE5: raknet 29@ = get_hook_param PARAM_PACKETID
if 29@ == RPC_ScrClientMessage
then
31@ = 1
end
0BE0: raknet hook_ret true