Jump to content

Wixeek

Member
  • Posts

    13
  • Joined

  • Last visited

Wixeek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. is there a way to make this script repeat itself in the background?? {$CLEO} 0000: NOP repeat wait 50 until 0AFA: is_samp_structures_available if 0AAB: file_exists "cleo\towcars.ini" then 0AF0: 9@ = get_int_from_ini_file "cleo\towcars.ini" section "towcars" key "masini" else 0AF1: write_int 2 to_ini_file "cleo\towcars.ini" section "towcars" key "masini" 9@ = 2 end 0B34: samp register_client_command "towcars" to_label @towcars 1@ = 0 4@ = 0 32@ = 60001 while true wait 0 if 1@ == 1 then 32@ = 0 if 4@ == 0 then if 001D: 9@ > 12@ then 0AF9: samp say_msg "/towcar" 4@ = 1 else 1@ = 0 end else if 0B4C: samp is_dialog_active -1 then 0B49: samp set_current_dialog_list_item 12@ 0B47: samp close_current_dialog_with_button 1 4@ = 0 12@ += 1 end end end :towcars if 32@ > 60000 then 32@ = 0 1@ = 1 12@ = 0 else 21@ = 60000 0062: 21@ -= 32@ 21@ /= 1000 chatmsg "{26EBE1}Please wait %d seconds before you can use /towcars again" -1 21@ end samp.CmdRet
  2. Does someone know why it keeps crashing when i launch the game? {$CLEO .cs} 0000: repeat wait 50 until 0AFA: is_samp_structures_available 0B34: samp register_client_command "cspawner" @cspawner 0AF9: samp say_msg "/towcar" wait 20000 if 0B4C: samp is_dialog_active -1 then 0B49: samp set_current_dialog_list_item 15 0B47: samp close_current_dialog_with_button 1 end :cspawner samp.CmdRet
  3. Sorry about the double post YES THANK YOU, it works now Thank you everyone who helped me learn a bit of cleo you are great tysm
  4. so yea when it types /towcar a dialog pops up and i have to select the car, but i want the script also to press enter to close the dialog, i tryed with 0AB0: key_pressed 13 doesnt work any tips? should i use this instead? 0B47: samp close_current_dialog_with_button 1 //Ok/Enter and also how do i make it to press arrow down {$CLEO .cs} 0000: repeat wait 50 until 0AFA: 0B34: "activation" @activation WHILE TRUE wait 0 if 0@ == 1 then 0AF9: say_msg "/towcar" 0AB0: key_pressed 13 wait 10000 end END :activation if 0@ == 0 then 0AF8: "Spammer on" -1 0@ = 1 else 0AF8: "Spammer off" -1 0@ = 0 end 0B43: samp cmd_re
  5. still doesnt work using 0C8F: samp process_chat_input "/towcars" made my chat box dissapear and i couldnt type anything i think i will drop this and try to do something to type /towcar ever 1 min or so and go down every time
  6. sorry for my lack of replies i figured it out the script cant read the command by another cleo so i kinda dropped but i will try Nic`s idea with 0C8F: samp process_chat_input "/towcars" ill be back with a response
  7. pretty much for alt accounts to type /towcars every idk 1 or 1 and a half minutes automatically without me doing anything i have a cleo script when you type /towcars spawn every car you own, and i want it to keep spawning them and keeping them that way. but still i managed it to work too but looks like /towcars doesnt exist but if i type it it works
  8. yea, fixed the compile error, but the activation command doesnt work on server.
  9. hmm weird, ill install it again
  10. Label "SAMPCmdRet" not found. how do i fix this friend also this Unknown directive say "/towcars".
  11. So i mananged to make compile it this way, but when i log in i get 3 errors, and after i log and type /active it says the command doesnt exist any advice? {$CLEO .cs} 0000: REPEAT WAIT 0 UNTIL 0AFA: 1@ = 0 0B34: samp register_client_command "Activate" to_label: @active WHILE TRUE wait 0 if 0@ == 1 then 0AF9: say_msg "/towcars" end wait 3000 :active end 0B43: samp cmd_ret
  12. Unknown directive chatmsg "Spammer on" -1 aici trebuie sa mai adaug cv nu?
  13. Hello, so im very very noob in any script, but stil i tryed to make a cleo script wich u can activate/deactivate using an command for ex /activation i want it to type every few seconds a command but it doesnt work or crashes me {$CLEO .cs} 0000: {$USE bitwise} {$USE file} 0B34: samp register_client_command "activation" to_label @activation WHILE TRUE wait 0 if 0@ == 1 then 0AF9: say_msg "/towcars" end END :activation 0B12: 0@ = 0@ XOR 1 if 0@ == 1 then 0AF8: "Spammer on" -1 else 0AF8: "Spammer off" -1 end 0B43: samp cmd_ret end
×
×
  • 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.