Closed NeonWizard closed 5 years ago
Broadcasts can only be global, not personal, but I was planning this for version 3 of Friendly Fire Autoban!
Uhh no, personal broadcasts were introduced to smod a while ago. It would be very easy to implement quickly
It's in ServerMod2 as a command, PBC
, but it isn't in the API last I checked coding my callvote
plugin.
API
Added Map.Broadcast function. Takes a uint for the duration, a string for the message that should be displayed and a bool for whether or not it should be monospaced. This allows you to display a message for all your players, similar to the BC command.
Added Map.ClearBroadcasts function. This allows you to empty the queue of messages to broadcast, similar to the BCCLEAR command.
Yeah it wouldn’t be in the Map API considering it’s not something that runs on a global scale. There’s a personal broadcast method in the Player API, can’t remember what it’s called rn
I'll look into it an add it to the next version. I have to rewrite how TKs are counted for #17 but in the long run it will allow the plugin to work like it would in other games. I wish they had listed the Player API updates in the same announcement.
Well derp I thought I updated the Smod2.dll for FFA but it turns out I hadn't. That explains why it wasn't showing up in peek definition. I'm hoping to get this change out tonight.
Issue #8 has also been closed in lieu of using broadcasts instead
Deserves its own issue.
Has been implemented since version 4.
When someone is close to getting auto-banned, send them a personal broadcast warning to let them know.