Using Engine Module:
Code:
// Get Origin Vector as Float
new Float:fOrigin[3]
entity_get_vector( playerID, EV_VEC_origin, fOrigin )
// Convert Origin Vector to Integer (requires engine_stocks.inc)
new iOrigin[3]
FVecIVec( fOrigin, iOrigin )
Then you can do what you want with either Origin (Float vec or Int vec)
Hope that helps!
Edit:

v3x you posted same time as me!
Edit2:

Haha! We did it again!