Jump to content

{_AntiFreak_}

Members
  • Posts

    38
  • Joined

  • Last visited

Details

  • Location
    Germany

{_AntiFreak_}'s Achievements

Rat

Rat (9/54)

0

Reputation

  1. but isn't it so, that the message will only be shown ONCE? or really EVERY 60 seconds?
  2. Yes, i wanted it to look so
  3. alias empty !halt $input(Error - Empty $1 Field,douw,MRS - Error!) alias w_n { if (!$dialog(w_n)) { !dialog -md w_n w_n } } dialog w_n { title "[MRS]Mega-RCON-Script by !!TheTruthGER - Messages" size -1 -1 290 57 option dbu text "Welcome-Message:", 2, 8 8 48 8 text "News:", 3, 8 24 25 8 edit "", 4, 56 8 177 10, autovs button "Welcome: On", 5, 248 8 37 12 edit "", 6, 56 24 178 10, autovs button "News: On", 7, 248 24 37 12 button "Save Changes", 1, 8 40 128 12 button "Close", 9, 144 40 141 12, ok cancel } on *:DIALOG:w_n:sclick:*: { if ($did == 1) { if ($did(w_n,5) == Welcome: On) { !write -dl $+ 1 " $+ $scriptdir $+ welcomemsg.txt" !write " $+ $scriptdir $+ welcomemsg.txt" $did(w_n,4) } else { !write -dl $+ 1 " $+ $scriptdir $+ welcomemsg.txt" !write " $+ $scriptdir $+ welcomemsg.txt" Off } if ($did(w_n,7) == News: On) { !write -dl $+ 1 " $+ $scriptdir $+ newsmsg.txt" !write " $+ $scriptdir $+ newsmsg.txt" News: $did(w_n,6) } else { !write -dl $+ 1 " $+ $scriptdir $+ newsmsg.txt" !write " $+ $scriptdir $+ newsmsg.txt" Off } !halt $input(Messages have been saved,dou,Messages have been saved) } elseif ($did == 5) { if ($did(w_n,5) == Welcome: On) { !did -a w_n 5 Welcome: Off !did -ra w_n 4 Off } else { !did -a w_n 5 Welcome: On } } elseif ($did == 7) { if ($did(w_n,7) == News: On) { !did -a w_n 7 News: Off !did -ra w_n 6 Off } else { !did -a w_n 7 News: On } } } on *:DIALOG:w_n:init:*: { if ($read(welcomemsg.txt,1)) !did -ra w_n 4 $v1 if ($read(newsmsg.txt,1)) !did -ra w_n 6 $v1 } on *:SIGNAL:mta.adcon: { if ($3 == !messages) w_n } NOW IT WORKS!!!!! I'm so good^^
  4. now, i made a dialog, but it doesn't really work. The dialog is shown, but the buttons don't work. Here, the dialog: alias empty !halt $input(Error - Empty $1 Field,douw,MRS - Error!) alias w_n { if (!$dialog(w_n)) { !dialog -md w_n w_n } } on *:start: { mta !dialog -md w_n w_n } dialog w_n { title "[MRS]Mega-RCON-Script by !!TheTruthGER - Messages" size -1 -1 290 57 option dbu text "Welcome-Message:", 2, 8 8 48 8 text "News:", 3, 8 24 25 8 edit "", 4, 56 8 177 10, autovs button "Welcome: On", 5, 248 8 37 12 edit "", 6, 56 24 178 10, autovs button "News: On", 7, 248 24 37 12 button "Save Changes", 1, 8 40 128 12 button "Close", 9, 144 40 141 12, ok cancel } on *:DIALOG:w_n:sclick:*: { if ($did == 1) { if (!did(w_n,4)) && ($did(w_n,5) == Welcome: On) empty Welcome-Message elseif (!$did(w_n,6)) && ($did(w_n,7) == News: On) empty News else { !write -dl $+ 1 " $+ $scriptdir $+ welcomemsg.txt" !write " $+ $scriptdir $+ welcomemsg.txt" $did(w_n,4) !write -dl $+ 1 " $+ $scriptdir $+ newsmsg.txt" !write " $+ $scriptdir $+ newsmsg.txt" $did(w_n,6) !halt $input(Welcome/News-Msg Saved,dou,Welcome/News-Msg Saved) } } elseif ($did == 5) { if ($did(prs,5) == Welcome: On) { !write -dl $+ 1 " $+ $scriptdir $+ welcomemsg.txt" !write " $+ $scriptdir $+ welcomemsg.txt" Off !did -a w_n 5 Welcome: Off !did -a w_n 4 Off } else { !write -dl $+ 1 " $+ $scriptdir $+ welcomemsg.txt" !write " $+ $scriptdir $+ welcomemsg.txt" $did(w_n,4) !did -a w_n 5 Welcome: On } } elseif ($did == 7) { if ($did(prs,7) == News: On) { !write -dl $+ 1 " $+ $scriptdir $+ newsmsg.txt" !write " $+ $scriptdir $+ newsmsg.txt" Off !did -a w_n 7 News: Off !did -a w_n 6 Off } else { !write -dl $+ 1 " $+ $scriptdir $+ newsmsg.txt" !write " $+ $scriptdir $+ newsmsg.txt" $did(w_n,6) !did -a w_n 7 News: On } } } on *:DIALOG:w_n:init:*: { if ($read($scriptdir $+ welcomemsg.txt,1)) !did -ra w_n 4 $v1 if ($read($scriptdir $+ newsmsg.txt,1)) !did -ra w_n 6 $v1 } on *:SIGNAL:mta.adcon: { if ($3 == !w_n) w_n } What is wrong? Can someone help me, please???
  5. Groove, you are TOO late! i already found it myself.^^
  6. hmm... but so the Advert will be shown only once after 300 seconds. But i want to get an advert EVERY minute. How can i do this?
  7. ah, i found the help file manually, thx
  8. Error-Message: c:\\...\mirc.hlp File wasn't found
  9. you are wrong in this thread, go to the thread "Addcons" there you find information about PRS. PRS is a Script for MTA:mA (MTA:mIRC-Admin) a Remote-Admin-Console for MTA:SA. You can load Scripts in it, for example if you type !admin, it shows which admins are online and stuff like this...
  10. {_AntiFreak_}

    Dialog

    Hello, i want to create a dialog in my script, but i need some help For example i take the dialog out of PRS: dialog prs { title "MTASA:PRS By [uVA]Scooby" size -1 -1 197 108 option dbu tab "PRS Main", 100, -1 -3 198 111 text "Welcome Msg:", 1, 5 15 35 8, tab 100 edit "Welcome To My Server.", 2, 41 14 154 10, tab 100 autovs } I don't know what these values behind the tabs, texts or edits say (, 2, 41 14 154 10, tab 100 autovs). which number is for what (height, width...) and what is autovs and "option dbu"??? Hope for help, thx
  11. i want to show these adverts avery minute untill i stop it
  12. but before every advertisement it checks if %advert is 1, so you can stop it. and i WANT that it won't stop until i deactivate it. But the question was, if it would work. I Tested it yesterday but it didn't work, i have addet the $1 behind mta.text but the advertisement isn't shown.
  13. {_AntiFreak_}

    MD5

    or you edit the updater, that it will automaticaly update.^^
×
×
  • Create New...