Jump to content

как создать базу


Recommended Posts

Допустим база для клана,создание конкретной зоны в которую если буду заходить простые игроки будут умерать если у них нет допустим скина

Edited by Kors
Link to comment

как то так наверно

function saveZone ( hitElement )
  if getElementType ( hitElement ) == "player" then
    if getElementModel ( hitElement ) ~= 9 then -- 9 ид скина с которым можно войти.
      killPed ( hitElement, hitElement ) -- игрок убьет сам себя.
    end
  end
end

col = createColRectangle ( -100, -100, 200, 200 ) -- x, y, длина, ширина.
addEventHandler ( "onColShapeHit", col, saveZone )
Link to comment
22 hours ago, K1parik said:

как то так наверно


function saveZone ( hitElement )
  if getElementType ( hitElement ) == "player" then
    if getElementModel ( hitElement ) ~= 9 then -- 9 ид скина с которым можно войти.
      killPed ( hitElement, hitElement ) -- игрок убьет сам себя.
    end
  end
end

col = createColRectangle ( -100, -100, 200, 200 ) -- x, y, длина, ширина.
addEventHandler ( "onColShapeHit", col, saveZone )

А кординаты Данной сейфзоны как поставить , скажи если не трудно

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...