Aggressor Posted June 29, 2007 Posted June 29, 2007 I want a script that says every minute something in admin console, like visit mtavc.com for more info!. I found this on this forum: on *:SIGNAL:mta.connect: { !.timer 0 500 mta.text $1 Message !.timer 0 550 mta.text $1 Message2 } But it doesnt work on my server, im using MTAVC0.5 and the GRS script from Oli, so i add them as personal scripts via mIRC.
lil Toady Posted June 29, 2007 Posted June 29, 2007 on *:SIGNAL:mta.connect:{ .timermsg 60 0 mta.say $1 $read($scriptdir $+ mta.messages.txt) } on *:SIGNAL:mta.disconnect:{ .timermsg off } create a .txt file called mta.messages and write your messages there, every line = a new message
Aggressor Posted June 29, 2007 Author Posted June 29, 2007 Thanks, but have a problem. I have made a txt file name mta.messages, then i added the script u posted via the costum script loader, when i connect with mIRC it then it says my entered messages for like 50 times and then it doesnt do anything anymore. Like this: [15:44] * Connecting to 62.163.219.78:4003... (Admin+) [15:44] * Connected! [15:44] * Game: GTA:VC | Mode: Deathmatch | Submode: | 0 / 26 [15:44] [15:44] [15:44] [15:44] and so on like maybe 50 times or more, then it doesnt do anything in a minute or longer. What im doing wrong? EDIT: I have found the problem, it was in the script, i changed something now it looks this way: on *:SIGNAL:mta.connect:{ .timermsg 0 60 mta.say $1 $read($scriptdir $+ mta.messages.txt) } on *:SIGNAL:mta.disconnect:{ .timermsg off } The 0 and 60 were inverted which was the problem, anyway thanks toady it works now
Aggressor Posted June 29, 2007 Author Posted June 29, 2007 On a note: How can i add more messages in the txt file? Its like this now: test1 test2 test3 It only says the test3 then...
lil Toady Posted June 29, 2007 Posted June 29, 2007 yeh lol, my fault, was sleepy on *:SIGNAL:mta.connect:{ .timermsg 0 60 mta.message $1 } on *:SIGNAL:mta.disconnect:{ .timermsg off } alias mta.message mta.say $1 $read($scriptdir $+ mta.messages.txt)
Aggressor Posted June 29, 2007 Author Posted June 29, 2007 Okej, but how must the txt file must look like? Can you give me an example, of say like 3 messages? Thanks
Guest Posted June 29, 2007 Posted June 29, 2007 I had something similar to this but I had a random message appear after a player died.
lil Toady Posted June 29, 2007 Posted June 29, 2007 I had something similar to this but I had a random message appear after a player died. this script aint anyhow related to player death, well, 1 minute is a way too often imo, that why you might think that was on player death. Or maybe one of your other script uses a mta.message alias on death
Recommended Posts