CLEO Help Insult mod Help me

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,723
Solutions
1
Reaction score
112
Im making this mod which when you type /insult [Insult what?] it will say loads of insults here is my code
also my cmd isn't working when i join the game is starts saying the insults

Code:
{$CLEO .cs}
THREAD 'Insult'
:WABZ_1023
wait 0
if
0B34: samp register_client_command "/INSULT" to_label @INSULT
else_jump @WABZ_1023



:INSULT
0B35: samp 0@ = get_last_command_params
0AF9: samp say_msg "%d Is a fucking cunt" 0@
wait 1500
0AF9: samp say_msg "%d Has No life" 0@
wait 1500
0AF9: samp say_msg "%d Is a retard" 0@
wait 1500
0AF9: samp say_msg "%d Is a fucked up cunt" 0@
wait 1500
0AF9: samp say_msg "Everybody Avoid %d" 0@
wait 1500
jump @WABZ_1023

when i test it, it says D not the name
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
{$CLEO .cs}
THREAD 'Insult'


0B34: samp register_client_command "INSULT" to_label @INSULT


:NOP
wait 0
jump @NOP


:INSULT
0B35: samp 0@ = get_last_command_params
0AF9: samp say_msg "%d Is a fucking cunt" 0@
wait 1500
0AF9: samp say_msg "%d Has No life" 0@
wait 1500
0AF9: samp say_msg "%d Is a retard" 0@
wait 1500
0AF9: samp say_msg "%d Is a fucked up cunt" 0@
wait 1500
0AF9: samp say_msg "Everybody Avoid %d" 0@
wait 1500
0B43: samp cmd_ret


ALSO:
SANNYBUILDER -> OPTIONS ->FORMATS-> UP/DOWN LETTERCASE
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,723
Solutions
1
Reaction score
112
works now but it still says "D" instead of what i type like /insult Test

i want it to do like "Test Is a fucking cunt"
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
{$CLEO .cs}
THREAD 'Insult'


0B34: samp register_client_command "INSULT" to_label @INSULT


:NOP
wait 0
jump @NOP


:INSULT
0B35: samp 1@ = get_last_command_params
0B36: samp 0@ = get_player_nickname 1@
0AF9: samp say_msg "%s Is a fucking cunt" 0@
wait 1500
0AF9: samp say_msg "%s Has No life" 0@
wait 1500
0AF9: samp say_msg "%s Is a retard" 0@
wait 1500
0AF9: samp say_msg "%s Is a fucked up cunt" 0@
wait 1500
0AF9: samp say_msg "Everybody Avoid %s" 0@
wait 1500
0B43: samp cmd_ret


Do that:
Open Sanny Builder -> Press F10 -> Open FORMAT tab -> Upcase/downcase letter conversation -> SET IT TO NORMAL and then compile your script.
 

Z0DY

Well-known member
Joined
Feb 20, 2013
Messages
225
Reaction score
0
saying (null) now
Code:
{$CLEO .cs}
THREAD 'Insult'


0B34: samp register_client_command "INSULT" to_label @INSULT


:NOP
wait 0
jump @NOP


:INSULT
0B35: samp 0@ = get_last_command_params
if
    0AD4: 0@ = scan_string 0@ format "%s" 2@s
then
0AF9: samp say_msg "%s Is a fucking cunt" 2@s
wait 1500
0AF9: samp say_msg "%s Has No life" 2@s
wait 1500
0AF9: samp say_msg "%s Is a retard" 2@s
wait 1500
0AF9: samp say_msg "%s Is a fucked up cunt" 2@s
wait 1500
0AF9: samp say_msg "Everybody Avoid %s" 2@s
wait 1500
end
0B43: samp cmd_ret
have fun
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
{$CLEO .cs}
THREAD 'Insult'


if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available


0B34: samp register_client_command "INSULT" to_label @INSULT


:NOP
wait 0
jump @NOP


:INSULT
0B35: samp 0@ = get_last_command_params // Make sure you input a ID
0B36: samp 1@ = get_player_nickname 0@
0AF9: samp say_msg "%s Is a fucking cunt" 1@
wait 1500
0AF9: samp say_msg "%s Has No life" 1@
wait 1500
0AF9: samp say_msg "%s Is a retard" 1@
wait 1500
0AF9: samp say_msg "%s Is a fucked up cunt" 1@
wait 1500
0AF9: samp say_msg "Everybody Avoid %s" 1@
wait 1500
0B43: samp cmd_ret
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Code:
:INSULT
0B35: samp 0@ = get_last_command_params 
0AD4: 1@ = scan_string 0@ format "%d" 2@  
00D6: if and
0029:   2@ >= 0 
8019:   not  2@ > 1000 
0B23: samp is_player_connected 2@ 
then
0B36: samp 3@ = get_player_nickname 2@ 
0AF9: samp say_msg "%s Is a fucking cunt" 3@
wait 1500
0AF9: samp say_msg "%s Has No life" 3@
wait 1500
0AF9: samp say_msg "%s Is a retard" 3@
wait 1500
0AF9: samp say_msg "%s Is a fucked up cunt" 3@
wait 1500
0AF9: samp say_msg "Everybody Avoid %s" 3@
wait 1500
end
0B43: samp cmd_ret
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,723
Solutions
1
Reaction score
112
i cant find the format thing when i press F10 i go to formats than i find upper case and lower case thing there is

Uppercase,lower case,As is

Which one do i like tick
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,723
Solutions
1
Reaction score
112
This is what i see


uQN77mI.jpg
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
HAVE FUN xD WORKS 100%

{$CLEO .cs}
THREAD "THREAD_BY_OPCODEXE"
0662: NOP "www.youtube.com/OpcodeXe"

if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available

0B34: samp register_client_command "fakyu" to_label @fakyu

while true
wait 0
end





:fakyu
0B35: samp 30@ = get_last_command_params
if
0AD4: 30@ 30@ format "%d" 0@
then
if
0B23: samp is_player_connected 0@
then
0B36: samp 1@ = get_player_nickname 0@
GOSUB @INSULT // USED: 0@ , INPUT NAME WITH: 1@


end
end
0B43: cmd_ret




//GOSUB @INSULT // USED: 0@ , INPUT NAME WITH: 1@
:INSULT
0209: 0@ = random_int_in_ranges 0 13
0209: 0@ = random_int_in_ranges 0 13


///#################################
if
0@ == 0
then
0AF9: samp say_msg "Roses are red violets are blue, God made me pretty, what happened to %s?" 1@
end
///#################################
if
0@ == 1
then
0AF9: samp say_msg "It looks like %s's face caught on fire and someone tried to put it out with a hammer." 1@
end
///#################################
if
0@ == 2
then
0AF9: samp say_msg "%s .. you are proof that God has a sense of humor." 1@
end
///#################################
if
0@ == 3
then
0AF9: samp say_msg "%s are you always an idiot, or just when I'm around??" 1@
end
///#################################
if
0@ == 4
then
0AF9: samp say_msg "%s ordinarily people live and learn. You just live." 1@
end
///#################################
if
0@ == 5
then
0AF9: samp say_msg "%s you are so ugly when you were born the doctor threw you out the window and the window threw you back!" 1@
end
///#################################
if
0@ == 6
then
0AF9: samp say_msg "Don't you need a license to be that ugly %s?" 1@
end
///#################################
if
0@ == 7
then
0AF9: samp say_msg "If I were to slap %s, it would be considered animal abuse! " 1@
end
///#################################
if
0@ == 8
then
0AF9: samp say_msg "What are you doing here %s? Did someone leave your cage open?" 1@
end
///#################################
if
0@ == 9
then
0AF9: samp say_msg "Aww, it's so cute when %s tryes to talk about things he doesn't understand." 1@
end
///#################################
if
0@ == 10
then
0AF9: samp say_msg "%s you are so old, you fart dust." 1@
end
///#################################
if
0@ == 11
then
0AF9: samp say_msg "%s your parents hated you so much you bath toys were an iron and a toaster." 1@
end
///#################################
if
0@ == 12
then
0AF9: samp say_msg "%s.. i don't know what makes you so stupid, but it really works!" 1@
end
///#################################
if
0@ == 13
then
0AF9: samp say_msg "%s you must think you're strong, but you only smell strong." 1@
end
///#################################


RETURN
 
Status
Not open for further replies.
Top