PHP Code:
// PlayerOrigin[ id ][ 0 ] = 0.0;
// PlayerOrigin[ id ][ 1 ] = 0.0;
// PlayerOrigin[ id ][ 2 ] = 0.0;
entity_get_vector( id, EV_VEC_origin, PlayerOrigin[ id ] );
Also, commented lines are useless, those 3 cells gonna be filled with EV_VEC_origin in any way.
But there is something i'm wondering, why are you doing this ?
I mean, to put a player back in base, just do ExecuteHam(Ham_Spawn, id) on him :
PHP Code:
spawn_player_back(id)
{
new Float:flHealth = entity_get_float(id, EV_FL_health);
ExecuteHam(Ham_Spawn, id);
entity_set_float(id, EV_FL_health, flHealth);
}
__________________