You need a true or false value for each player. This can be done by the following array:
pawn Код:
new GoToEnabled[MAX_PLAYERS];
This basically is disabling it for all players, because its default value is 0.
Next you need a allow-goto command that would set that to 1. I suggest you do a toggle for 1 command.. meaning, if its 1, set it to 0 (disabling it) or if its 0, set it to 1. be sure to use an If Else statement for that, otherwise it might falsely set it back to 0, or 1 depending on the order you choose.
Lastly, you need a teleport command that checks if the target players GoToEnabled value is 1, and if they are spawned using GetPlayerState. if so, teleport them, if not, display a message how that person has not enabled their allow-goto ability.
Now be sure that OnPlayerConnect or OnPlayerDisconnect you set their value back to 0, so the new player can decide on their own if they want to or not.
Hope this helps, it contains all the mechanics. By default, every player will be disabled unless you set all 500 slots of that array to 1.