示例#1
0
function dojetpack(Player $player, $numparams, $params)
{
    $pos = $player->Position();
    $id = CreatePickup(370, 2, $pos->x, $pos->y, $pos->z);
    AddTimer('DestroyPickup', 2000, 0, $id);
    return COMMAND_OK;
}
示例#2
0
 public function ChangeIcon($newmodel)
 {
     if ($this->id != -1) {
         DestroyPickup($this->id);
         $this->id = CreatePickup($newmodel, 23, $this->position->x, $this->position->y, $this->position->z);
     }
 }