Hi guys i was looking for a option to force players con connect to join the current event with plugin eventmanager.
Is this possible?
Can i achieve this with other plugins?
Solved Forcing players to join event?
Discussion in 'Rust Development' started by Wizard the Lizard, Aug 3, 2017.
-
Yeah, you should use Hook OnPlayerInit, in that hook u should set player like event partipiant.
-
You could run a command when they join the server (onplayerinit)
Code:player.SendConsoleCommand("chat.say", "commandtojoineventmanager")
-
Aren't those blocked now ^ ?
-
Wulf Community Admin
-
I see. Thanks Wulf.
Adding the following to EMInterface works.
Code:void OnPlayerInit(BasePlayer player); { if (player !=null) EventManager.JoinEvent(player); }