Jump to content

Timer script


Aggressor

Recommended Posts

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.

Link to comment

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

Link to comment

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 :wink:

Link to comment
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

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...