Example #1
0
 public function SetPosition(Position $position)
 {
     SetPlayerPos($this->id, $position->x, $position->y, $position->z);
     SetPlayerFacingAngle($this->id, $position->angle);
     $this->Update();
 }
Example #2
0
 public static function OnPlayerEnterVehicle(Player $player, $vehicle)
 {
     if ($player->timedeath != 0) {
         $pos = $player->Position();
         SetPlayerPos($player->id, $pos->x, $pos->y, $pos->z);
         return CALLBACK_DISALLOW;
     }
     return CALLBACK_OK;
 }