The below is how you can associate all data for a player in one place. I don't fully understand what you are trying to do when it finishes and you want to teleport players.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define MAX_PLAYERS 32
enum PlayerData
{
pdName[ 33 ] ,
Float:pdOrigin[ 3 ] ,
bool:pdPlayerIsPlaying
}
new pdData[ MAX_PLAYERS + 1 ][ PlayerData ];
public test( id )
{
get_user_name( id , pdData[ id ][ pdName ] , charsmax( pdData[][ pdName ] ) );
pev( id , pev_origin , pdData[ id ][ pdOrigin ] );
pdData[ id ][ pdPlayerIsPlaying ] = true;
}
__________________