Can different checks be converted into single check?
#6

This, is why most 'edits' collapse... Because people simply keep tacking shit onto the end of a shit edit, and end up with the inherently shitty edit.


It's good that you've asked about this, as this is part of logic.

Sys has the right point.

Say for instance you have the teleport system... Have a variable for each player, showing whether or not they can tele in the first instance.

With admin commands you can check if the players are admins at all in the first instance, rather than checking if they are connected, and whether they are in a certain skin or such.

With the jailed/frozen/muted checks, you could make a variable for the player 'Disciplined', then anything that denies access coming from them being disciplined can be checked before everything else that is checked.


The less checks, the better... The more efficient you can be in this, the better you will handle this.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)