custom-hooks-commands
textPage 11 of 152
50 messages on this page
Sunday, August 18, 2024
User 3ae430
Thank you so much, i replaced "This" with "player" and it worked.
User a506fe
Every player is 1000 unless there is an entry for it in serveradmin.xml
User a506fe
There is no 1500
User a506fe
Oh and ingame the max permission level is 1000
User a506fe
player
User a506fe
Use the native object
User a506fe
But are not in a loop
User a506fe
You use "this"
User 3ae430
it worked tho, but not like i want it. first time it executed them all so it ended up with me having the Player tag, which is the last one to execute. but now none of them will execute.
User 44dc99
Someone feel free to correct me if I am wrong here, but pretty sure I recall that V1.0 broke using color codes for player names.
User 3ae430
Ok i tried this:
{{#if (lte this.role.level 0)}}
cgc adduser {{this.entityId}} admins;
admin add {{this.entityId}} 1;
ocn ${player.name} "ff3a00 [ffffff]${player.name}";
{{else if (lte this.role.level 1500)}}
cgc adduser {{this.entityId}} donators;
admin add {{this.entityId}} 1500;
ocn ${player.name} "c0207c [ffffff]${player.name}";
{{else if (lte this.role.level 1000)}}
cgc adduser {{this.entityId}} member;
admin add {{this.entityId}} 1000;
ocn ${player.name} "77d41f [ffffff]${player.name}";
{{else if (lte this.role.level 2000)}}
cgc adduser {{this.entityId}} players;
admin add {{this.entityId}} 2000;
ocn ${player.name} "2086c0 [ffffff]${player.name}";
{{/if}}
{{#if (lte this.role.level 0)}}
cgc adduser {{this.entityId}} admins;
admin add {{this.entityId}} 1;
ocn ${player.name} "ff3a00 [ffffff]${player.name}";
{{else if (lte this.role.level 1500)}}
cgc adduser {{this.entityId}} donators;
admin add {{this.entityId}} 1500;
ocn ${player.name} "c0207c [ffffff]${player.name}";
{{else if (lte this.role.level 1000)}}
cgc adduser {{this.entityId}} member;
admin add {{this.entityId}} 1000;
ocn ${player.name} "77d41f [ffffff]${player.name}";
{{else if (lte this.role.level 2000)}}
cgc adduser {{this.entityId}} players;
admin add {{this.entityId}} 2000;
ocn ${player.name} "2086c0 [ffffff]${player.name}";
{{/if}}
But it executed them all and then i end up with the player tag.
Edit: going insane, i do not know what im doing wrong and now it wont execute at all.
User 3ae430
can anyone help me make a hook to add a tag to connected players? where the tag has a color and the name remains white, i used to have this but i cannot remember the hook.
Friday, August 16, 2024
User 8649f6
Finally did it in C# ๐ฅฒ
Tuesday, August 13, 2024
User 6ceaf4
Try the #each loop
User 8649f6
wait(5); {{#if (or (ne player.positionX (get "positionX" (lookupPlayer player.steamId))) (ne player.positionY (get "positionY" (lookupPlayer player.steamId))))}} say"ok tp" {{else}} say "not ok tp " {{/if}}``` I got this but its everytime returning not ok ^^
User 6ceaf4
When a command fires, csmm receives the player location but till the end of the command, the position is not updated. Maybe after the wait you can loop thru each online player and compare the names, and after a match, compare the position from the command and thw loop
User 8649f6
Was thinking about something like that
User 8649f6
Hey all i'm new here and i would like your help ! I am trying to creat a command to teleport in a region, BUT my player can not move during 10 seconds before tp otherwise the tp cmd got canceled, Should i use hooks ? Anyone can tell me where to look ? Thanks
User 44dc99
Using search string "Better hurry! Its bloodmoon [FF0000]TONIGHT"
User 44dc99
User ea35ab
Hello, so this command works on 1.0? Thank you
User 6ceaf4
Go thru each item looking for whatever you wanted to look for
User ec6f02
is there a page somewhere with custom hooks people have made I can look at?
User ec6f02
hey sorry what do I need to check for "player.inventory.bag"?
User 2fc02a
{{#if (gte custom.SecondLevel (sum custom.FirstLevel 5))}} sendDiscord(xxxxx,"Possible Cheater. SteamID: {{custom.steamId}} jumped SteamID: {{custom.steamId}}. From level {{custom.FirstLevel}} to level {{custom.SecondLevel}}") {{/if}}User 2fc02a
Yes that helped a lot thanks
User 6ceaf4
Search for jumped up in this discord
User 2fc02a
2024-08-10T01:17:18 20165.172 INF [CSMM_Patrons] WARNING: ExplosiveKeyz (Steam_76561198041136902) jumped up more than one level (30 -> 40).
User 2fc02a
I'm capturing the line, but I'm not sure where to look to learn, how to make it send discord, what that line says.
Like:
Player (name) from that line is that I want it to output.
Not finding a lot in the CSMM app info, so I can learn how to do this myself.
Or if I had a good example, I could look at it and understand it better.
Like:
Player (name) from that line is that I want it to output.
Not finding a lot in the CSMM app info, so I can learn how to do this myself.
Or if I had a good example, I could look at it and understand it better.
User 6ceaf4
#each with player.inventory.bag is what you want
User 6ceaf4
Make a custom variable with a regex that matches the whole line
Monday, August 12, 2024
User 2fc02a
Is it possible to have it send the log line instead
User ec6f02
Check inventory if they do have a certain item on them and give a different item, just need it to be able to check the invtery when they make a request in chat
Sunday, August 11, 2024
User 963f55
What is the overall outcome desired? If you are just asking to verify something isn't in their inventory (person) before giving them another, what if they drop it put in box, then run command again? Are you looking for a time limit in-between attempt? Or once given, didn't give again? More specific details on what you wish to have happen would help narrow down what can vs can't be accomplished
User ec6f02
could I have some help with my request please 1271814546880724993
User a827fb
ah, ok. My quest for a server tool with decent support continues. Nevertheless, you can expect us to sub to Takaro. We love CSMM! (and the support!)
User bddf69
7d2d and Rust is what's supported now, we will totally add support for more games in the future (Minecraft is most likely next) ๐
Though it's not server hosting, you will still need to run the gameserver somewhere and Takaro will connect to it to do management. Similar to CSMM ;)
Saturday, August 10, 2024
User a827fb
Being helpful is always appreciated!
User 963f55
Ahh, I didn't pay attention to the fact you were replying, I'll go back to my hole... ๐
User a827fb
Yes, I was replying to Cata's comment about Takaro. I had a look the other day and saw the current plan is for 7 Days and Rust, thus my request to keep it open to other games as well. I'll edit my comment to make that clearer!
User 963f55
@User 12497205 there are other options for an actual hosting application thou, you can ask in either #offtopic or join the 7D Admin Coalition #read-this-first to get other suggestions.
User 963f55
TCAdmin is for hosting the games, CSMM/CPM are used for controlling in game aspects.... However there is a "little project" https://discord.com/channels/336821518250147850/336822204887203840/1132728654221291610 that will expand into other games.... But it's still being developed.
User a827fb
Please have Takaro support other games like Minecraft & forge modpacks, space engineers, ark, etc.! We're currently paying for TCAdmin and the customer support is garbage ๐ฆ Would much rather give you our money!
User ec6f02
I currently have a custom command that when they type it in the server it give an item, however I dont want them to abuse it
User ec6f02
hi all, I have a request, what command can I use to get csmm to check a players inventory before giving them an item please, I cant seem to get csmm to check inventory as it comes up with API error in the server
User bddf69
User bddf69
It's not really a secret, it's just not ready yet :P
Friday, August 9, 2024
User 44dc99
Eventually may replace CSMM I think? Kind of like CSMM, but is a bit more fluid in how things work so can manage other game servers as well. I'm not sure how public it is currently, and I may have screwed up and spoken out of turn. >.>
I really want to get into playing with it, but I have SO many other things that are more important that I keep shuffling around.
I really want to get into playing with it, but I have SO many other things that are more important that I keep shuffling around.
User 2eb44a
Whats takaro