Jump to content
Hostul a fost schimbat. Daca vedeti serverul offline readaugati rpg.b-zone.ro sau 141.95.124.78:7777 in clientul de sa-mp ×

Fast reaction


dixievennera88
 Share

Recommended Posts

Hello im looking for way to create scripts that detects text and automatically types reaction,im playing on server while every hour comes a fast reaction " [REAKCIJA] {FFFFFF}Igrac koji najbrze napise {00AAFF}4p311002R6s1 {FFFFFF}osvaja nagradu od 3000$. SRECNO!" it means REACTION,Player who types fastest 4p311002R6s1 is getting 3000$,good luck but every time text to type is different and its not any kind of dialog its just pop ups in chat and player who types it first gets the money is there anyway to make script that will automatically detect text and type it?

 

Link to comment
Share on other sites

Hi,

 

So, an exemple of server message is " [REACTION] {FFFFFF}Player who types fastest {00AAFF}4p311002R6s1 {FFFFFF}is getting 3000$, GOOD LUCK ", please tell me, section " [REACTION] {FFFFFF}Player who types fastest {00AAFF} " is always the same in all server messages ? Only the secret word and amount of money is changing in message ? 

Link to comment
Share on other sites

3 hours ago, Tupi said:

Hi,

 

So, an exemple of server message is " [REACTION] {FFFFFF}Player who types fastest {00AAFF}4p311002R6s1 {FFFFFF}is getting 3000$, GOOD LUCK ", please tell me, section " [REACTION] {FFFFFF}Player who types fastest {00AAFF} " is always the same in all server messages ? Only the secret word and amount of money is changing in message ? 

Every time the code that u need to type is different

 

https://imgur.com/rRTUJr3 

 

 

last 2 messages in text is that code money and everything is same but just the code u need to type is different u basically open chat and just type "code its always random" and u get money if someone didnt type faster

Link to comment
Share on other sites

Try to compile this

 

{$CLEO}

0000:
repeat
wait 0
until 0AFA:


:LOOP
WAIT 0

0AC8: 0@ = 1024
0B74: 99 0@ 0 0 0
if 0C29: 33@ = 0@ "SRECNO"
then
    0C17: 31@ = 0@
    0085: 29@ = 0@
    0AC8: 27@ = 2
    0AC8: 1@ = 128
    0C11: 1@ 0 128
    30@ = 0
    WHILE 803B: 30@ == 31@
        0A8D: 28@ = 29@ 1 1
        if 28@ == 123
        then
            29@ += 7
            0A8D: 28@ = 29@ 1 1
            if 28@ <> 125
            then 29@ -= 7  
            else
                29@ += 1
                0A8D: 28@ = 29@ 1 1 
                30@ += 8   
            end
        end
        0C11: 27@ 0 2
        0A8C: 27@ 1 28@ 1
        0C15: 1@ 27@       
        29@ += 1 
        30@ += 1
    end
    0AC9: 27@
    
    1@ += 37
    if 0AD4: 33@ 1@ "%s" v$WORD
    then
        if 8B21:
        then 0B79: 1
        end
        wait 100 
        0B76: samp set_chat_input_text v$WORD
        wait 100
        0C72: 13 down true
        0C72: 13 down false
    end
    0AC9: 1@
end

0AC9: 0@

JUMP @LOOP

 

Link to comment
Share on other sites

21 hours ago, Tupi said:

Try to compile this

 

{$CLEO}

0000:
repeat
wait 0
until 0AFA:


:LOOP
WAIT 0

0AC8: 0@ = 1024
0B74: 99 0@ 0 0 0
if 0C29: 33@ = 0@ "SRECNO"
then
    0C17: 31@ = 0@
    0085: 29@ = 0@
    0AC8: 27@ = 2
    0AC8: 1@ = 128
    0C11: 1@ 0 128
    30@ = 0
    WHILE 803B: 30@ == 31@
        0A8D: 28@ = 29@ 1 1
        if 28@ == 123
        then
            29@ += 7
            0A8D: 28@ = 29@ 1 1
            if 28@ <> 125
            then 29@ -= 7  
            else
                29@ += 1
                0A8D: 28@ = 29@ 1 1 
                30@ += 8   
            end
        end
        0C11: 27@ 0 2
        0A8C: 27@ 1 28@ 1
        0C15: 1@ 27@       
        29@ += 1 
        30@ += 1
    end
    0AC9: 27@
    
    1@ += 37
    if 0AD4: 33@ 1@ "%s" v$WORD
    then
        if 8B21:
        then 0B79: 1
        end
        wait 100 
        0B76: samp set_chat_input_text v$WORD
        wait 100
        0C72: 13 down true
        0C72: 13 down false
    end
    0AC9: 1@
end

0AC9: 0@

JUMP @LOOP

 

Thank u very much :)

Link to comment
Share on other sites

16 minutes ago, dixievennera88 said:

I cant compile it Unknown directive then 0B79: 1.

Try to modify "1" with "TRUE" and try again to compile, if not working it means you are mission some SAMPFUNCS librarys, need to download from gogle and pus in data folder from SB main folder.

Link to comment
Share on other sites

On 12/20/2022 at 10:27 PM, dixievennera88 said:

i downoloaded all sampfuncs i need but its still missing,myb u got a link which one i should downoload or?

Download this archive, and put all files in data > sa from your SB3 folder. LINK

Link to comment
Share on other sites

  • Tupi locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.