custom-hooks-commands

textPage 7 of 152
50 messages on this page
Sunday, October 13, 2024
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Is that the same for both?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
{{#each server.onlinePlayers}} {{#if (lte this.role.level 0)}} cgc adduser {{this.entityId}} Admin; admin add {{this.entityId}} 0; {{else if (lte this.role.level 10)}} cgc adduser {{this.entityId}} Moderator; admin add {{this.entityId}} 10; {{else if (lte this.role.level 20)}} cgc adduser {{this.entityId}} facilitator; admin add {{this.entityId}} 20; {{else if (lte this.role.level 800)}} cgc adduser {{this.entityId}} Supporter; admin add {{this.entityId}} 800; {{else}} cgc adduser {{this.entityId}} Player; admin add {{this.entityId}}; {{/if}} {{/each}}
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Can you post the script again?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
so groups are set i can manually add people the script doesnt want to work though
image.png

image.png

PNG37.5 KB

Saturday, October 12, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
iirc, a gametime credit set for 1 hour does not exactly reward players every hour, but instead, everyone online when the new hour comes. Might wanna test that and do a cronjob that fires a minute later, perhaps.
But if in the meantime they kill a zombie, it will be awkward....
And if you make it every minute, 100% spammy
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
player.role.level is what you need
Avatar for 553895403a08b4356835e42ef1ff17289587bf7a750c4095bafb0a4fccdda0db
User 553895
You would have to enter that in the custom hooks. In Player Connect.
Then every player who comes onto the server will be asked for their role.
Avatar for 0d4a240fed0cee9d6fd312ecd98e8fa7cd1295d12f1f65dd683c0fbe66033cf9
User 0d4a24
And while I'm thinking about it, is there any way to integrate roles into hooks, so for example if I wanted to give a player an item for killing a particular zombie, could that item be role specific, so say a normal player kills a Boss Grace, they get a quality 2 pump action shotgun and 100 shells, but if a Donor kills it they get a level 4 pump action shotgun and 200 shells?
Avatar for 0d4a240fed0cee9d6fd312ecd98e8fa7cd1295d12f1f65dd683c0fbe66033cf9
User 0d4a24
I'm a complete noob at this stuff, I've worked out a custom hook for displaying the player's balance on killing a zombie with the event ZombieKilled and the command pm ${player.entityId} "Your new ChonkyKredz balance is: [ff77ee]${player.currency}" and while it's a little clunky it'll be ok.
Is there any way of displaying when the gametime credit is applied please?
Thursday, October 10, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Pcc bliss ffffff 0
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
oh ok how do i do that
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Does not look like you cleared the pcc thing
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
the text didnt change after i deleted the hook
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
i did b4 but ive deleted it since
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Pcc i mean
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Seems like you might have a playerchatcolor aka occ too
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
yes
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Aint ffffff white?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
i changed it via hook, player login but i deleted it and reloged since
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
No content
image.png

image.png

PNG71.5 KB

Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
No content
image.png

image.png

PNG20.7 KB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Cgc listgroups says what?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
ok not sure whats going on now i typed in cgc adduser Bliss Admin added my self did the addgroup command and my text didnt change
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
{{#each server.onlinePlayers}} {{#if (lte this.role.level 0)}} cgc adduser {{this.entityId}} Admin; admin add {{this.entityId}} 0; {{else if (lte this.role.level 10)}} cgc adduser {{this.entityId}} Moderator; admin add {{this.entityId}} 10; {{else if (lte this.role.level 20)}} cgc adduser {{this.entityId}} facilitator; admin add {{this.entityId}} 20; {{else if (lte this.role.level 800)}} cgc adduser {{this.entityId}} Supporter; admin add {{this.entityId}} 800; {{else}} cgc adduser {{this.entityId}} Player; admin remove {{this.entityId}}; {{/if}} {{/each}}
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
It looks like you created the group Admin and now tried to add yourself to the group admins... that wont work
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
ok so i ran the command but my text is still the same i think this is right
not sure what to do next
image.png

image.png

PNG26.1 KB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Addgroup is a command you run just once to create the group
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
this is alil confusing i tried it doesnt seem to work though
image.png

image.png

PNG5.5 KB

Wednesday, October 9, 2024
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
No content
image.png

image.png

PNG50.0 KB

Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
You setup the chat groups.
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
so now that roles are set how to i set color to each role?
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Just set the Discord roles in Permissions and roles.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
The magic with this your players can sign into CSMM, link their Discord and this can do it's own thing.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
This would be a server automation, set it to run every 20 or 30 minutes.
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
then i do what to call up the variables ${moderators}?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
ok i think i understan alittle this is saying "lte this.role.level 800" if the user is that level they are added as this rank
so to use this i just pop it into player connects?
Avatar for 0c9f0f58f73a8513d5be09044c89348df9dcfd409388b36ff637a300f22498a3
User 0c9f0f
{{#each server.onlinePlayers}}
{{#if (lte this.role.level 0)}} cgc adduser {{this.entityId}} admins;
admin add {{this.entityId}} 0;
{{else if (lte this.role.level 10)}} cgc adduser {{this.entityId}} moderators;
admin add {{this.entityId}} 10;
{{else if (lte this.role.level 20)}} cgc adduser {{this.entityId}} facilitator;
admin add {{this.entityId}} 20;
{{else if (lte this.role.level 800)}} cgc adduser {{this.entityId}} supporters;
admin add {{this.entityId}} 800;
{{else}} cgc adduser {{this.entityId}} players;
admin remove {{this.entityId}};
{{/if}}
{{/each}}
ok so this is really complex to me does this add them as the role level?
Friday, October 4, 2024
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
Awesome, I am trying to do something similar, don't help me though I am trying to learn.
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
My vote is built into my esc menu and it opens a webpage
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
Perfect, thank you. I am just wondering if I should even attempt it. Thanks a lot for answering my noob questions. I have learned a lot so far.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
if there is a console command that opens steam browser (I never heard of one) yes. Otherwise, no.
Thursday, October 3, 2024
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
Is there a way to open a client's steam browser, to a certain website using a custom hook? For example if I wanted it to pop up with the vote website. I am sure there must be a way, because there is a steam browser command. I am afraid I am just too noob to handle this one boys. Again, just a yes or no answer is fine you don't need to elaborate.
Sunday, September 29, 2024
Avatar for d6c4fef2a42ed75b6f8882f759ee127c92de1949b211b85be859b6d09e49ba0a
User d6c4fe
thank you i sorted it i didnt reinstall the aloc server mods and web tokens had vanished thanks for your help
Saturday, September 28, 2024
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Once I used yours it worked fine, thanks dude!
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Works, apparently theres some sort of discrepency between entity ids, the ids with the spawnentity help command in the console don’t entirely match up
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Alright mate, I'll give it a go 🙂
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
you want 128 instead of sc_General
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
all the zombies, but no crates
image.png

image.png

PNG109.3 KB

Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Do the zombos spawn for you too? Then the loot crates?