public function GetData() { $data = array(); $data['location'] = $this->location->ID(); $data['x'] = $this->position->x; $data['y'] = $this->position->y; $data['z'] = $this->position->z; $data['angle'] = $this->position->angle; $data['injures'] = $this->injures; $data['hunger'] = $this->hunger; $data['money'] = $this->money; $data['bank'] = $this->bank; $data['level'] = $this->level; $data['experience'] = $this->experience; if ($this->faction != null) { $data['faction'] = $this->faction->ID(); } else { $data['faction'] = null; } $data['onduty'] = $this->onduty; $data['rank'] = $this->rank; $data['sex'] = $this->sex; $data['age'] = $this->age; $data['reports'] = $this->reports; $data['bankfreezed'] = $this->bankfreezed; $data['strength'] = $this->strength; $data['skin'] = $this->skin; $data['vworld'] = $this->vworld; $data['speedo'] = $this->speedometer; $data['jailtime'] = $this->jailtime; $data['upgradepts'] = $this->upgradepts; foreach ($this->skills as $skill => $value) { $data['sk_' . Players::GetSkillDBName($skill)] = $value; } return $data; }