Is there a way to write a plugin so when a person joins the server a popup message comes up with a customised message. Just like what happens currently when a admin types /popup "message" in game.
I would just like everybody to see the rules when entering the server and they have to click "ok" so the popup message leaves and then they can play as usual.
Is this possible at all?
Universal Popup message on connect
Discussion in 'Plugin Requests' started by FTG_DuelMaster, Jun 14, 2016.
-
Can someone help me make a mof for my server I want to type /rules and have my rules in a popup window. will pay a little?
[DOUBLEPOST=1467538049][/DOUBLEPOST]Code:[ChatCommand("rules")] private void Rules(Player Player, string Command, string[] Args) { int i = 1; string Output = "Amp Gaming Rules\r\n\r\n"; foreach (string Value in RuleList) { Output += i.ToString() + ". " + Value + "\r\n"; i++; } Player.ShowPopup("Rule List", Output); }
-
let me do this for you. be back in a sec
-
popup window its better.and its better if its auto popup when player join server
-
-
sure, is possible.
you want it, only to be shown, when the player connects the first time, or everytime he spawns? -
was this ever done?
-
Yes, it was.
But I can't release my plugins right now, because I have to learn how to remove all the hard code.
You can have three unofficial version though -
that will work
-
what is that supposed to mean ?
-
-
Check this one PersonalWelcome for Reign of Kings | Oxide.
-
void OnPlayerSpawn(PlayerFirstSpawnEvent spawnEvent)
{
Player player = spawnEvent.Player;
{
player.ShowPopup("[FFA500]RULES
code
popup when join server -
Hello, I was wondering if it was possible and how to meter my rules popup messages ?