format(query, sizeof(query), "SELECT SpawnX,SpawnY,SpawnZ,SkinID,AngleA FROM playerdata WHERE user = '%s'", pname);
mysql_query(query);
mysql_store_result();
SetSpawnInfo(playerid, 0, SkinID, SpawnX, SpawnY, SpawnZ, AngleA, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
mysql_free_result();