Author Topic: Host caller - Request fulfilled  (Read 1040 times)

This would allow players on a server to call a host who has gone AFK. If possible, here's a way it could work: The player would type a slash command, /callhost for instance, and they would be told that the host had been notified (this would tell people if that server had this add-on). The host would then hear some sort of noise to notify them that someone had used the command, as well as a message that told who used the command (to prevent abuse where the host wouldn't know who was spamming it).

I don't know if it's possible, but I just thought it was a good idea. I go AFK a lot during my TDM and I come back and often find that people have been needing me to monitor a suspected cheater or fix a small issue.
« Last Edit: August 05, 2009, 03:56:51 AM by Regulith »

This would allow players on a server to call a host who has gone AFK. If possible, here's a way it could work: The player would type a slash command, /callhost for instance, and they would be told that the host had been notified (this would tell people if that server had this add-on). The host would then hear some sort of noise to notify them that someone had used the command, as well as a message that told who used the command (to prevent abuse where the host wouldn't know who was spamming it).

I don't know if it's possible, but I just thought it was a good idea. I go AFK a lot during my TDM and I come back and often find that people have been needing me to monitor a suspected cheater or fix a small issue.
You already created one.

You already created one.

I mean one not made out of bricks and events.

I mean one not made out of bricks and events.

I want one that calls my cell phone.
lol

"HEY DUDE, SOMEONE BUILT A snake IN FRONT OF MY HOUSE"

I want one that calls my cell phone.
lol

"HEY DUDE, SOMEONE BUILT A snake IN FRONT OF MY HOUSE"

That would be hilarious.


I could probably try to make this, doesn't sound that hard.



I want one that calls my cell phone.
lol

"HEY DUDE, SOMEONE BUILT A snake IN FRONT OF MY HOUSE"

Better yet, /clearrichards command.

It probably wouldn't work, because when I go AFK, I'm all the way on the other side of my house, I can't herr stuff from my non-BL computer (which is right next to my BL computer), and my BL computer's speakers are busted.

It probably wouldn't work, because when I go AFK, I'm all the way on the other side of my house, I can't herr stuff from my non-BL computer (which is right next to my BL computer), and my BL computer's speakers are busted.

This would be the main problem, but the command should be very simple. I could try making one for you. Just would be a problem if your literally AFK or muted speakers or something.

Code: [Select]
function serverCmdCallHost(%client)
{
messageClient(localclientconnection,'','<color:ffff00>%1 <color:ffffff>has called you.',%client.getPlayerName());
localClientConnection.playSound(Synth_11_Sound);
localClientConnection.schedule(10,playSound,Synth_11_Sound);
localClientConnection.schedule(20,playSound,Synth_11_Sound);
localClientConnection.schedule(30,playSound,Synth_11_Sound);
}

Untested, if it works it should show:
Chrono has called you.
and beep 4 times.

Possible errors: .getPlayerName()
Known errors: Will not work on dedicated. Abuse.

When I go AFK, I literally go AFK.

-scriptsnip-

Thanks, it appears to work when I use it on myself, but I won't know if it works for other players until I can host again.

Can you make it so it tells the person who calls that it works? Otherwise someone could try to call the host and get no response because the server doesn't actually have the script. This is all assuming that you're going to release this, though. If you're not, I don't think you have to bother.

When I go AFK, I literally go AFK.

That's what the sound is for.