[Release] NoMoreTroll

This is my first release, I am not quite sure how many people will use this, but I have enjoyed making this mod.

GitHub Image

So with this mod, you can freeze a Troll. you can TP to the frozen troll and when frozen they can not use a weapon. They can not move from the spot where they are frozen.

Commands

  • /freeze {UserID}, {true/false} eg: /freeze 13 true will freeze server player 13, /freeze 13 false will unfreeze them and let them go on with there day.

  • /tpj This command once you run the above command will TP you to the player whom is frozen and once you have dealt with the case you can use /tpj to then return to your old spot, this command is not auto, allowing you to get out of a car or move somewhere safe before tping to the player.

  • /wt {UserID} eg: /wt 13 will send a warning to the user asking to stop if there been a troll or breaking rules.

  • /nomoretroll This will return our simple about dialog with your own mug shot.

Thanks to @BadKai_Panda we also have Ace support so this will only let your admins run the commands, to enable this add the below to your server.cfg file and change the Ace command in the config to true.

Adding Ace Support:

The Ace is now a extra level of admin support, as long as your admins have command allow in the admin command list you
don’t need to do anything else
Commands if you want to split them up

  • command.freeze – to freeze the player
  • command.wt – to be able to warn a player.
  • command.tpj – your admins will need this to tp to the frozen player
  • command.nomoretroll – So your admins can check the about, don’t give this to normal users you don’t want to let them know what scripts your running.

Commands what support console don’t do a Ace check as the server don’t need it.

The old Ace check is still in place so you can also make sure your admins have the nomoretroll.admin level

To enable select admins to use this script only add the below ace command to your user ace’s in your server.cfg file.

server.cfg

add_principal identifier.steam:110000000000000 nomoretroll.admin 			# give admins script admins.

replace identifier.steam:110000000000000 with there steam id

Then in your resource/{path}/NoMoreTroll open up the config.lua file and change the Ace Enabled option from false
to true, you can see this below.

config.lua

	-- This version of the Ace is now a extra step and you can leve this false if you want, it might be removed in a future
	-- version no you just need a admin with the command allow.
	Ace = {
		-- Enable/Disable the Ace support nomoretrol.admin add below to your server.cfg
		-- add_ace group.admin nomoretroll.admin allow # give admins script admins.
		-- in version 1.0.0.2 this becomes a sub group and you can enable this for extra level of admins
		Enabled = false,	

to

	-- This version of the Ace is now a extra step and you can leve this false if you want, it might be removed in a future
	-- version no you just need a admin with the command allow.
	Ace = {
		-- Enable/Disable the Ace support nomoretrol.admin add below to your server.cfg
		-- add_ace group.admin nomoretroll.admin allow # give admins script admins.
		-- in version 1.0.0.2 this becomes a sub group and you can enable this for extra level of admins
		Enabled = true,	

Commands that work server side:

  • wt PlayerID - just like you would in game but without the /
  • nomoretroll - just the about dialog

Can I use this script:

Yes please feel free to fork it as much and has hard as you like, this is under the WTFPL, it would be nice if you link back to this topic or thank me CalixFoxUK, but you don’t have to.

Please enjoy :wink:

Dialog Mod options
We have also enabled 3 mods of dialog in this script, you can return messages to Chat or Dialog this was stolen from BadKai :smile: with permission, I also have included a third option where it looks like a text message, much more nicer if you ask me. Text Message mode is default, you can change the Dialog and Ace error message in the config.lua you will see the settings Mode = 3 Change this to 1 for chat, 2 for Dialog and 3 for Text Message.

You can also change the messages of each message in the config.lua

I myself often get lost using admin menu’s and if flustered by the time I have found an option you can guarantee the person disconnects from the server. So for me this script is ideal I can remember a few simple commands. NoMoreTroll is here live for you all to share.
Please report any bugs here or GitHub issue tracker, All suggestions to this post are welcome. I will see about adding any good idea’s that are put forward.

1.0.0.0 - Example none Ace, random commands, random testing
1.0.0.1 - Released version with Ace support cleaned up code and removed random testing
1.0.0.2 - Fixed the Deprecated methods, thanks @BadKai_Panda for the help and @TheIndra for pointing out this mistake.


Download from GitHub

All bugs reported will be fixed ASAP if I am able to.
Have fun and please enjoy NoMoreTroll.

3 Likes

Nothing was stolen, all the help I gave you was with love :slight_smile: I am glad you had fun making this and I hope you come up with other little mods like this, big or little all ideas are cool and many people love to include them or learn from them.

P.S that Troll face suits you :clown_face:

1 Like

Please replace your chatMessage command handler with RegisterCommand, flag or reply when done

See Creating commands - Cfx.re Docs

Can you show us a example on basic converting to that option, as this was a easiest way to do the command without it showing in the automatic / auto fill these commands shouldn’t be indexed.

What we mean is when you do /f she don’t want it to show in the chat list, I will help her convert this tomorrow.

1 Like

The command suggestion won’t show up whenever someone doesn’t have ace permission for it.

1 Like

From what I read tho this means each command needs a ace set for it making the Ace more complex and a mess her system right now as just the one Ace what lets admins use the command.

Or does it mean we don’t have to include any Ace’s at all as admins in most cases can do command allow, sorry for me to help her and fix my own script I have to learn a little more as the ace/acl things are new to me so I can only pass on what I know :stuck_out_tongue:

Also I ask for the examples yesterday not been blind, the link at the time didn’t work, it was around when the servers was having problems.

1 Like

This as been updated now thanks @TheIndra for pointing that out and thanks @BadKai_Panda I cheated because he helped me a lot to fix that part by doing all the research and asking on discord and things like that, I took time away from him updating is own script hehe :nerd_face: