Jump to content

Juuun

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    Compton

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Juuun's Achievements

Vic

Vic (3/54)

0

Reputation

  1. 1 Проблема С открытием ворот по скину. Скрипт открывает ворота только для скина "280", а надо что бы открывало для несколько скинов например: 280, 281, 282. Пробовал по разному не получается. 2 Проблема "outputChatBox" - пишет у всех игроков в чате при открытие, а не у одного кто открыл ворота. Вот код: ls_gate1 = createObject ( 978, 1541.8000488281, -1627.9000244141, 13.199999809265, 0, 0, 90 ) function openls_gate(thePlayer) if getElementModel( thePlayer ) == 280 then moveObject (ls_gate1, 1000, 1541.8000488281, -1627.9000244141, 11.699999809265, 0, 0, 0 ) outputChatBox ("Ворота открыты", source, 230, 100, 100 ) end end addCommandHandler ( "lsopen", openls_gate ) function closels_gate(thePlayer) if getElementModel( thePlayer ) == 280 then moveObject (ls_gate1, 1000, 1541.8000488281, -1627.9000244141, 13.199999809265, 0, 0, 0 ) outputChatBox ("Ворота закрыты", source, 230, 100, 100 ) end end addCommandHandler ( "lsclose", closels_gate )
  2. Нужна помощь скриптера чтобы написать 2-3 скрипта для RP сервера. Или кто посоветует хорошего скриптера.. Отзовитесь. Киньте ВК или Скайп - Я вас добавлю.
  3. Привет всем) Скатал ID System с комюнити ( Как в сампе дает ИД каждому игроку ). Никак не получается прикрепить видимость ид в scoreboard. Получилось только добавить сам столбик с названием..как на скрине! А сам ресурс работает! только там просмотреть можно ид с помощью команды /ids ( и выдает в чате все номера игроков ), а надо чтоб именно в scoreboard отображались номера игроков ( ID`ы ) Помогите пожалуйста! === Вот код === exports.scoreboard:addScoreboardColumn("id",getRootElement(),1) addCommandHandler("ids", function(player, command) players = getElementsByType("player") for id,p in ipairs(players) do outputChatBox(getPlayerName(p) .. ": " .. tostring(id), player) end end) function getIDFromPlayer(player) if player then local theid players = getElementsByType("player") for id,p in ipairs(players) do if player == p then theid = i end end return theid else return false end end function getPlayerFromID(theID) if theID then theID = tonumber(theID) local theplayer players = getElementsByType("player") for id,p in ipairs(players) do if theID == id then theplayer = p end end return theplayer else return false end end
  4. Здрасте) При подключение на сервер высвечивается карта от Фриром. Как ее убрать?! Чтобы больше не высвечивалась :с
  5. Привет всем) Скатал ID System с комюнити ( Как в сампе дает ИД каждому игроку ). Никак не получается прикрепить видимость ид в scoreboard. Получилось только добавить сам столбик с названием..как на скрине! А сам ресурс работает! только там просмотреть можно ид с помощью команды /ids ( и выдает в чате все номера игроков ), а надо чтоб именно в scoreboard отображались номера игроков ( ID`ы ) Помогите пожалуйста! === Вот код === exports.scoreboard:addScoreboardColumn("id",getRootElement(),1) addCommandHandler("ids", function(player, command) players = getElementsByType("player") for id,p in ipairs(players) do outputChatBox(getPlayerName(p) .. ": " .. tostring(id), player) end end) function getIDFromPlayer(player) if player then local theid players = getElementsByType("player") for id,p in ipairs(players) do if player == p then theid = i end end return theid else return false end end function getPlayerFromID(theID) if theID then theID = tonumber(theID) local theplayer players = getElementsByType("player") for id,p in ipairs(players) do if theID == id then theplayer = p end end return theplayer else return false end end
×
×
  • Create New...