So i found this code somewhere. the usage is /.spam <delay> <cmd>
but if i have a cmd of two words like '/fish start' it doesn't work. it only detects 'fish' and not the 'start'. How do i overcome this?
but if i have a cmd of two words like '/fish start' it doesn't work. it only detects 'fish' and not the 'start'. How do i overcome this?
C:{$CLEO} thread "Spammer" :Load wait 300 if SAMP.Available else_jump @Load 0B34: samp register_client_command ".spam" to_label @SpamToggle 30@ = 0 while true wait 0 if 30@ == 1 then 0AF9: samp say_msg "%s" 3@v wait 2@ end end :SpamToggle 0B35: samp 0@ = get_last_command_params 2@ = -69 0AD4: 29@ = scan_string 0@ format "%d %s" 2@ 3@ if 2@ == -69 then if 30@ == 0 then 0AF8: samp add_message_to_chat "[USAGE]: /.spam <time> <text>" color 0xBEBEBE else 30@ = 0 0AF8: samp add_message_to_chat "[.spam] {BE0000}Disabled" color 0xBEBEBE end else if 30@ == 0 then 30@ = 1 0AF8: samp add_message_to_chat "[.spam] {00BE00}Enabled" color 0xBEBEBE else 30@ = 0 0AF8: samp add_message_to_chat "[.spam] {BE0000}Disabled" color 0xBEBEBE end end Samp.CmdRet