CLEO Help Upgrading autocapturf.cs

CLEO related
Status
Not open for further replies.

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.
 

Attachments

  • AutoCapturf.cs
    18.8 KB · Views: 23

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
Micic said:
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.

So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,137
Solutions
5
Reaction score
885
Location
Lithuania
Micic said:
Micic said:
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.

So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?

Maybe time to start learning about cleo???
 

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
Parazitas said:
Micic said:
Micic said:
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.

So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?

Maybe time to start learning about cleo???
I did 2 days ago.Still bad af
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,137
Solutions
5
Reaction score
885
Location
Lithuania
Micic said:
Parazitas said:
Micic said:
Micic said:
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.

So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?

Maybe time to start learning about cleo???
I did 2 days ago.Still bad af

I u did  that 2 days ago...
Please show your code..
 

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
Parazitas said:
Micic said:
Parazitas said:
Micic said:
Micic said:
I think for this thing someone experienced will need to do the job.
Basically I need this file editable in .ini file.So I can add things for every thing I need.
I hope you guys understand.
And BIG Thanks.

So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?

Maybe time to start learning about cleo???
I did 2 days ago.Still bad af

I u did  that 2 days ago...
Please show your code..
What I meant i started learning about cleo 2 days ago.I only learnt to change they on/off key and easy things like that :)
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,137
Solutions
5
Reaction score
885
Location
Lithuania
Micic said:
Parazitas said:
Micic said:
Parazitas said:
Micic said:
So what I mean is because I am not fimiliar with sanny builder and scripting I mean like this:
1.You edit this .cs file a bit 
2.Create a external editable file .ini
.ini should be something like this 
"//When typed this
Text in server (ex. Type /ready) (EDITABLE)
//It will type this
/ready (EDITABLE)"
But to add more answers because I am planning to use it for quiz on server.
You get it now ?

Maybe time to start learning about cleo???
I did 2 days ago.Still bad af

I u did  that 2 days ago...
Please show your code..
What I meant i started learning about cleo 2 days ago.I only learnt to change they on/off key and easy things like that :)

So.. , u did nothing...
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,137
Solutions
5
Reaction score
885
Location
Lithuania
Micic said:
What I meant i started learning about cleo 2 days ago.I only learnt to change they on/off key and easy things like that :)

So ... , your true is... , you just want get free full code.
But here is help section , not request... o_O

Ech...

PHP:
{$CLEO}

0000:

repeat
wait 0 
until 0afa:


while true
wait 0

//// Create file
if
8AAB:   file_exists "CLEO\AutoCapturf.ini"
then
    WHILE 8A9A: 20@ = openfile "cleo\AutoCapturf.ini" mode "at" // IF and SET
    wait 0
    END
    0AD9: write_text "[DetectText] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "Text=You have 5 minutes to sign the check before it becomes invalid. %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer1] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus=1 %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer2] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer3] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer4] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer1] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText=/capturf %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer2] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer3] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer4] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    0A9B: closefile 20@
end

//// Toggle control
if and
8B21: not samp is_chat_opened
0AB0:   key_pressed 80 //P key
then
    wait 1000 // anti spam
    0B12: 0@ = 0@ XOR 1
    if
    0@ == 1
    then
        0AF8: samp add_message_to_chat "{27D0F2}Auto capturf {27F227}ENABLED!" color -1
    else
        0AF8: samp add_message_to_chat "{27D0F2}Auto capturf {F22727}DISABLED!" color -1
    end
end

//// Code...
if
0@ == 1
then
    0AC8: 1@ = allocate_memory_size 260
    0AC8: 2@ = allocate_memory_size 260
    ///////////////////////////////////
    0AC8: 6@ = allocate_memory_size 260
    0AC8: 7@ = allocate_memory_size 260
    0AC8: 8@ = allocate_memory_size 260
    0AC8: 9@ = allocate_memory_size 260
    0AC8: 10@ = allocate_memory_size 260
    ///////////////////////////////////
    0AF4: 6@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "DetectText" key "Text"
    /////////////////////////////////////////////////////////////////////////////////////////////////////
    0AF4: 7@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer1" key "CommandOrText"
    0AF4: 8@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer2" key "CommandOrText"
    0AF4: 9@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer3" key "CommandOrText"
    0AF4: 10@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer4" key "CommandOrText"
    /////////////////////////////////////////////////////////////////////////////////////////////////////
    0AF0: 11@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer1" key "ActivateStatus"
    0AF0: 12@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer2" key "ActivateStatus"
    0AF0: 13@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer3" key "ActivateStatus"
    0AF0: 14@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer4" key "ActivateStatus"
    ////////////////////////////////////////////////////////////////////////////////////
    0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
    if
    0C18: 5@ = strstr string1 1@ string2 6@
    then
        if and
        0C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 7@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        0C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 8@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        0C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 9@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        0C14: strcmp string1 14@ string2 "1"
        then    
            say 10@
            wait 1500 // anti spam
        end
        
    end
    
    
end
    
    
end
 

Attachments

  • AutoCapturf.cs
    24.4 KB · Views: 20

Micic

Member
Joined
Jun 22, 2016
Messages
14
Reaction score
0
Parazitas said:
Micic said:
What I meant i started learning about cleo 2 days ago.I only learnt to change they on/off key and easy things like that :)

So ... , your true is... , you just want get free full code.
But here is help section , not request... o_O

Ech...

PHP:
{$CLEO}

0000:

repeat
wait 0 
until 0afa:


while true
wait 0

//// Create file
if
8AAB:   file_exists "CLEO\AutoCapturf.ini"
then
    WHILE 8A9A: 20@ = openfile "cleo\AutoCapturf.ini" mode "at" // IF and SET
    wait 0
    END
    0AD9: write_text "[DetectText] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "Text=You have 5 minutes to sign the check before it becomes invalid. %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer1] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus=1 %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer2] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer3] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[EnableAnswer4] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "ActivateStatus= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer1] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText=/capturf %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer2] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer3] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "%c" in_file 20@ 0xA // 0xA - NEW LINE
    
    0AD9: write_text "[Answer4] %c" in_file 20@ 0xA // 0xA - NEW LINE
    0AD9: write_text "CommandOrText= %c" in_file 20@ 0xA // 0xA - NEW LINE
    0A9B: closefile 20@
end

//// Toggle control
if and
8B21: not samp is_chat_opened
0AB0:   key_pressed 80 //P key
then
    wait 1000 // anti spam
    0B12: 0@ = 0@ XOR 1
    if
    0@ == 1
    then
        0AF8: samp add_message_to_chat "{27D0F2}Auto capturf {27F227}ENABLED!" color -1
    else
        0AF8: samp add_message_to_chat "{27D0F2}Auto capturf {F22727}DISABLED!" color -1
    end
end

//// Code...
if
0@ == 1
then
    0AC8: 1@ = allocate_memory_size 260
    0AC8: 2@ = allocate_memory_size 260
    ///////////////////////////////////
    0AC8: 6@ = allocate_memory_size 260
    0AC8: 7@ = allocate_memory_size 260
    0AC8: 8@ = allocate_memory_size 260
    0AC8: 9@ = allocate_memory_size 260
    0AC8: 10@ = allocate_memory_size 260
    ///////////////////////////////////
    0AF4: 6@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "DetectText" key "Text"
    /////////////////////////////////////////////////////////////////////////////////////////////////////
    0AF4: 7@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer1" key "CommandOrText"
    0AF4: 8@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer2" key "CommandOrText"
    0AF4: 9@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer3" key "CommandOrText"
    0AF4: 10@ = read_string_from_ini_file "cleo\AutoCapturf.ini" section "Answer4" key "CommandOrText"
    /////////////////////////////////////////////////////////////////////////////////////////////////////
    0AF0: 11@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer1" key "ActivateStatus"
    0AF0: 12@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer2" key "ActivateStatus"
    0AF0: 13@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer3" key "ActivateStatus"
    0AF0: 14@ = get_int_from_ini_file "cleo\AutoCapturf.ini" section "EnableAnswer4" key "ActivateStatus"
    ////////////////////////////////////////////////////////////////////////////////////
    0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
    if
    0C18: 5@ = strstr string1 1@ string2 6@
    then
        if and
        0C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 7@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        0C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 8@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        0C14: strcmp string1 13@ string2 "1"
        8C14: strcmp string1 14@ string2 "1"
        then    
            say 9@
            wait 1500 // anti spam
        end
        
        if and
        8C14: strcmp string1 11@ string2 "1"
        8C14: strcmp string1 12@ string2 "1"
        8C14: strcmp string1 13@ string2 "1"
        0C14: strcmp string1 14@ string2 "1"
        then    
            say 10@
            wait 1500 // anti spam
        end
        
    end
    
    
end
    
    
end

I am so sorry for taking your time.But I am very thankful,I respect your work :)
 
Status
Not open for further replies.
Top