[Help]Function List
-
Hello dear community,
Im trying to develop my custom scripts, idk, basic stuff like commands in the chat, giving money to players ...etcCurrently, I have approached giving money when a player spanws, however, I want to do it when a player type in the chat something like ".givemoney"
I tried to find out how does the chat work, however, I keep getting crashed each time.
I leave you my code here
init() { level thread watchChatMessages(); } watchChatMessages() { level endon("end_game"); for(;;) { level waittill("say", player, message); if (message == ".givemoney") { player.score += 100; } wait 0.01; } }If you can bring me a page where the function list are listed, due to I couldn't find them too.
Thanks for reading, best regards. -
Hello dear community,
Im trying to develop my custom scripts, idk, basic stuff like commands in the chat, giving money to players ...etcCurrently, I have approached giving money when a player spanws, however, I want to do it when a player type in the chat something like ".givemoney"
I tried to find out how does the chat work, however, I keep getting crashed each time.
I leave you my code here
init() { level thread watchChatMessages(); } watchChatMessages() { level endon("end_game"); for(;;) { level waittill("say", player, message); if (message == ".givemoney") { player.score += 100; } wait 0.01; } }If you can bring me a page where the function list are listed, due to I couldn't find them too.
Thanks for reading, best regards.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login