#how can i execute a plugin without a command?
13 messages · Page 1 of 1 (latest)
You will either need a plugin or a uScript for it
There is no other way
The title of this post is a bit confusing. However if you are asking how to run the chat message without q command. Your best bet for this situtiat9on is use the onPlayerHelarhUpdayed event and run a coruntine on the player if their health goes below 10. Otherwise, of you want 1 message, just plop it into the event itself
but where would i write the onPlayerHealthUpdated event? in the Load() method?
You would subscribe to the event in there yeah
so why doesnt this work?
public class TestPluginUntured : RocketPlugin<TestPluginConfiguration>
{
protected virtual void Load()
{
UnturnedChat.Say("test1");
}
protected virtual void Unload()
{
UnturnedChat.Say("test2");
}
}
it doesnt say anything in chat