Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GameMode : BaseMode
- {
- protected override async void OnPlayerRequestClass(BasePlayer player, RequestClassEventArgs e)
- {
- await ShowDialog(player);
- }
- protected override async void OnPlayerRequestSpawn(BasePlayer player, RequestSpawnEventArgs e)
- {
- await ShowDialog(player);
- }
- private static async Task ShowDialog(BasePlayer player)
- {
- var dialog = new InputDialog("Test", "Test dialog", true, "OK", "EXIT");
- await dialog.ShowAsync(player);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement