Author Topic: [Server] NoJet, Stop those people jetting out of minigames!  (Read 2767 times)

Server_NoJet

I made this because I wanted a mod that could stop people jetting around without changing all their datablocks or making a minigame, so this made it easier.


@ Features @
  • Command to change your own or others ability to jet!
  • Admin only!
  • Ability to tell whether you were changed to have jets and vice versa
  • Able to tell if you changed a person or not.
  • One simple command to do so.
  • RTB Pref to enable / disable.


@ Command / Usage @
  • /Jets    Enables / Disables your own ability to use jets ( Admin Only )
  • /Jets Playername    Enables / Disables someone else's ability to use jets ( Admin Only )



@ Changelog (DD/MM/Y/ GMT +12) @
Code: [Select]
03/01/2014
Update includes
RTB Pref to enable / disable, don't want it on when you're using different playertypes, well then disable it!

04/01/2014
Update includes
Doesn't interfere with minigames anymore.
Does not change playertype if you spawn with a playertype other than "PlayerNoJet" or "PlayerStandardArmor"
« Last Edit: January 03, 2014, 08:30:31 PM by Starzy »


perfect for my server :D
One word of advice they can always change their datablock with a brick.

One word of advice they can always change their datablock with a brick.
Oh I can disable building for minigame

Does this just change their datablock, so it's playernojet when they respawn again?

Does this just change their datablock, so it's playernojet when they respawn again?
It does, I've seen on some servers like Badspots where jets are completely disabled even if you start a minigame with standard player.

Edit: I tested because I noticed something in the code. This forces the player to have nojet even if the minigame datablock is set to horse, please fix this.
« Last Edit: January 02, 2014, 12:32:16 PM by Aware »

what are you doing

playerstandardarmor.canjet=0;transmitdatablocks();

done

what are you doing

playerstandardarmor.canjet=0;transmitdatablocks();

done
But he doesn't want everybody to jet, no?

It does, I've seen on some servers like Badspots where jets are completely disabled even if you start a minigame with standard player.

Edit: I tested because I noticed something in the code. This forces the player to have nojet even if the minigame datablock is set to horse, please fix this.
I can make a fix for this, give me some time.
I'm extremely busy, so give me a few hours.

Oh I can disable building for minigame
If you're using a minigame, why do you need this?

Update! Grab the new version here >>


Update includes
  • RTB Pref to enable / disable, don't want it on when you're using different playertypes, well then disable it!
Note >> will be publishing another update soon so if they're using a different datablock it won't change you to playernojet or standardarmor.
Also fixing a new error that I just discovered (quick fix in the next update)
« Last Edit: January 03, 2014, 08:23:53 PM by Starzy »

package NoJetFix
{
   function Armor::OnAdd(%data,%obj)
   {
      Parent::OnAdd(%data,%obj);
      if(%data.canJet)
         %obj.setDatablock(PlayerNoJet);
   }
};
activatePackage(NoJetFix);


When someone changes their datablock that has jets, it would change to the no jet datablock.

package NoJetFix
{
   function Armor::OnAdd(%data,%obj)
   {
      Parent::OnAdd(%data,%obj);
      if(%data.canJet)
         %obj.setDatablock(PlayerNoJet);
   }
};
activatePackage(NoJetFix);


When someone changes their datablock that has jets, it would change to the no jet datablock.
If I understand right you want me to add this to stop people being able to change there datablock, if so I would have to make it work with the mod because you can grant people or yourself the ability to have jets in this mod.

If I understand right you want me to add this to stop people being able to change there datablock, if so I would have to make it work with the mod because you can grant people or yourself the ability to have jets in this mod.
When they change their datablock, this automatic checks if it can jet. If it does, it changes it to the playernojet. It the vars are different (which is used by eval or a code piece) then that would be different)

When they change their datablock, this automatic checks if it can jet. If it does, it changes it to the playernojet. It the vars are different (which is used by eval or a code piece) then that would be different)
Yeah but thats not what I want to be done, see what I am doing here is that it sets everyones playertype to playernojet, and any admin can change other peoples including there own with /jets, otherwise it'll be easy to just do what zeblote said.