12.02.2017, 06:36
You just copy pasted the code to your script without declaring variables. The variable logged can be declared as global array of MAX_PLAYERS with bool tag.And set it as true on the part login confirms (probably a dialog's response in which you checks player types correct password). And also reset this variable on player's disconnection too.
Start referring from here
Start referring from here

