Jump to content

Sektor

Members
  • Posts

    123
  • Joined

  • Last visited

Everything posted by Sektor

  1. Не выходит вывеcти линию 2D function create2DLine ( ) local x,y = guiGetScreenSize() -- Get players resolution. dxDrawLine ( x/2, y/2-200, x/2, y/2-170, tocolor ( 0, 255, 0, 255 ), 1 ) -- Draw vertical crosshair line. dxDrawLine ( x/2-20, y/2-185, x/2+20, y/2-185, tocolor ( 0, 255, 0, 255 ), 1 ) -- Draw horizontal crosshair line. end function HandleTheRendering() local rootElement = getRootElement() addEventHandler("onClientRender",rootElement, create2DLine) -- Keep the line visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
  2. да ладно я забил на него, я перешел на NotePad++, сейчас очень сильно эта тема интересует: viewtopic.php?f=123&t=36981
  3. Ок))) я тоже уважаю тебя чувак. Исторический сложилось сперва я был на сампе, и захотел сделать не плохой мод, задумал графический инвентарь сделать, увы в сампе это не поддерживается, одежду тоже нельзя одевать, тву ты думаю, и ушел... Что-то не пойму тебя... Во первых сам посмотри у MTA открытый исходный код на C++, также есть SDK, функция набито в нем свыше 1000, а у sa-mp сколько функционала? И кто тут говорит наоубм?
  4. мне не хватает оружия
  5. вот сам код скрипта: local spawnpoint function PlayerClotnesOff(source) removePedClothes (source, 16 ) -- remove the helmet removePedClothes (source, 15 ) -- remove the helmet removePedClothes (source, 14 ) -- remove the helmet removePedClothes (source, 13 ) -- remove the helmet removePedClothes (source, 12 ) -- remove the helmet removePedClothes (source, 11 ) -- remove the helmet removePedClothes (source, 10 ) -- remove the helmet removePedClothes (source, 9 ) -- remove the helmet removePedClothes (source, 8 ) -- remove the helmet removePedClothes (source, 7 ) -- remove the helmet removePedClothes (source, 6 ) -- remove the helmet removePedClothes (source, 5 ) -- remove the helmet removePedClothes (source, 4 ) -- remove the helmet removePedClothes (source, 3 ) -- remove the helmet removePedClothes (source, 2 ) -- remove the helmet removePedClothes (source, 1 ) -- remove the helmet removePedClothes (source, 0 ) -- remove the helmet end addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() spawn(player) end ) function spawn(player) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) setElementPosition(player, 2316.1623, 49.6955, 26.482) --put v bomjatnik setElementModel(player, 0) setElementFrozen(player, false) addPedClothes ( player, "moto", "moto", 16 ) PlayerClotnesOff(player) createBlipAttachedTo ( player, 52 ) createBlip (100.0, -500.0, 17.0, 0, 4, 255, 125, 0, 255, 0, 1000.0, getRootElement()) end function getRandomSpawnPoint () end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) а вот конфиг <meta> <info author="Sektor (c) Ivanov Vitaly" description="Testing mod..." version="1" type="gamemode" /> <include resource="spawnmanager" /> <include resource="freeroam" /> <map src="broph.map" type="client"/> <script src="broph.lua"/> </meta> вот когда я спавнюсь все казалось бы норм, как какой-то игрок ко мне подсоединяется на сервер, так он меня видет лежавшим, и я его вижу лежавшим: Uploaded with ImageShack.us и еще идет баг с загрузкой файла (не у меня а у другого клиент) т.е написано 600 кб до завершения скачки, а у него все равно свыше 600 кб идет, притом бесконечно!!!А вот жалобы лога: =========================================================== = Multi Theft Auto: San Andreas v1.1.1 =========================================================== = Server name : SEKTOR SERVER TEST = Server IP address: = Server port : 22003 = = Log file : .. 1.1/Server/mods/deathmatch/logs/server.log = Maximum players : 1024 = HTTP port : 22005 = Voice Chat : Disabled =========================================================== [2011-11-07 19:41:03] Resources: 186 loaded, 0 failed [2011-11-07 19:41:03] Querying game-monitor.com master server... unavailable! [2011-11-07 19:41:03] Querying backup master server... success! [2011-11-07 19:41:04] Starting resources................. [2011-11-07 19:41:06] WARNING: test\broph.lua:33: Bad argument @ 'fadeCamera' [2011-11-07 19:41:06] WARNING: test\broph.lua:34: Bad argument @ 'setCameraTarget' [2011-11-07 19:41:06] WARNING: test\broph.lua:35: Bad argument @ 'showChat' [2011-11-07 19:41:06] WARNING: test\broph.lua:38: Bad argument @ 'setElementPosition' [2011-11-07 19:41:06] WARNING: test\broph.lua:39: Bad argument @ 'setElementModel' [2011-11-07 19:41:06] WARNING: test\broph.lua:40: Bad argument @ 'setElementFrozen' [2011-11-07 19:41:06] WARNING: test\broph.lua:41: Bad argument @ 'addPedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:5: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:6: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:7: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:8: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:9: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:10: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:11: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:12: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:13: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:14: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:15: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:16: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:17: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:18: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:19: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:20: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:21: Bad argument @ 'removePedClothes' [2011-11-07 19:41:06] WARNING: test\broph.lua:44: Bad argument @ 'createBlipAttachedTo' [2011-11-07 19:41:06] Server started and is ready to accept connections! [2011-11-07 19:41:06] Type 'help' for a list of commands. [2011-11-07 19:41:21] CONNECT: Sektor connected (IP: 93.79.66.188 Serial: D354463D938B43FB117CE0E8000FB8F4 Version: 1.1.1-9.03293.0) [2011-11-07 19:41:22] JOIN: Sektor joined the game (IP: 93.79.66.188) [2011-11-07 19:41:59] CONNECT: JonRadiation connected (IP: 93.88.12.247 Serial: 821B9705C2486BE55ED7F92A0E76AA94 Version: 1.1.1-9.03293.0) [2011-11-07 19:41:59] JOIN: JonRadiation joined the game (IP: 93.88.12.247) [2011-11-07 19:44:10] QUIT: JonRadiation left the game [Quit] [2011-11-07 19:44:12] CONNECT: JonRadiation connected (IP: 93.88.12.247 Serial: 821B9705C2486BE55ED7F92A0E76AA94 Version: 1.1.1-9.03293.0) [2011-11-07 19:44:13] JOIN: JonRadiation joined the game (IP: 93.88.12.247) [2011-11-07 19:44:41] CHAT: Sektor: :Oяяяяяяяя да что за хуйня [2011-11-07 19:53:26] Server stopped! [2011-11-07 19:53:26] Stopping resources.................... [2011-11-07 19:53:26] Closing SQLite3 database [2011-11-07 19:53:26] Closing SQLite3 database
  6. Вот почему он не создается????????????!!!!!!!!!!!
  7. createBlip( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0 *, float visibleDistance=99999.0, visibleTo = getRootElement()] ) у меня этот не срабатывает...
  8. [EDITOR] TabSize=4 TabGuideColor=-2894893 SelectionFGColor=-16777216 SelectionBGColor=-5065537 LineNumBorderColor=-16744320 LineNumFGColor=-16744320 LineNumBGColor=-1 EOLColor=-65536 BracketFGColor=-16777216 BracketBorderColor=16777215 BracketBGColor=-5192482 BGColor=-1 [MAIN] MenusRenderer=0 Maximized=false Width=800 Height=600 Y=0 X=0 where is the path?
  9. Вот это действительно круто! А что еще можно плагины писать на C++? Т.е внедрять новые функции?
  10. Вот пожалуйста скрин: Uploaded with ImageShack.us Абсолютно по всей папке MTA его пробывал закидывать, он не когда не находит ресурсы!
  11. MTA Server resource folder can not be found! ERROR!!! Damn! What to do? The curves in the hands of the developer!
  12. MTA Script Editor как мне его запустить пишет ресурсы не найдены???
  13. Где я могу узнать весь список функций скрипта?
  14. Как создать свой сервер в MTA??? Вот что это такое!!! =========================================================== = Multi Theft Auto: San Andreas v1.1.1 =========================================================== = Server name : R_SERVER = Server IP address: = Server port : 22003 = = Log file : ../mta/server/mods/deathmatch/logs/server.log = Maximum players : 32 = HTTP port : 22005 = Voice Chat : Disabled =========================================================== [2011-11-06 20:49:48] ERROR: Not processing resource 'admin' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ajax' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'amx' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-area51' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-cliff' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-dam' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-docks' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-heist' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-sharks' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-ship' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'as-supermarket' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'assault' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'br-sf' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'br-sf-autoteams' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'br-sf-teams' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'briefcase' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'briefcaserace' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'cdm' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'cdm-ls' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-bombsite' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-canals' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-csitaly' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-goldcove' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-hideout_z' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-hydrastrike' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-sewer' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctf-tbd' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctv' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctv-ls' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'ctv-smalltownrumble' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'deathmatch' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'deathmessages' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'deathpickups' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'defaultstats' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'dm-arena1' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'dm-canals' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'dm-port69' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'dm-smallville' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'easytext' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'edf' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'editor' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'editor_gui' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'editor_main' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'elementbrowser' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'fallout' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'freecam' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'freeroam' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'hay' as it has duplicates on different paths [2011-11-06 20:49:48] ERROR: Not processing resource 'headshot' as it has duplicates on different paths
  15. Вообще сервак не создается, тупо экран черный и все...
  16. А где мануал по созданию интернет сервера?
  17. А что бывает, что покупают моды?
  18. Понятен. А как насчет плагинов на C++?
  19. угу. А как ты weapon.dat отредактируешь через скрипт (в памяти)?
  20. Я также заметил что в SAMP-е нельзя скриптить самому графические инвентари... Сейчас я заметил что народа в MTA может достигать до 1024 человек, это значительно!!! Язык LUA действительно крут, по сравнение с Pawno... MTA рулит!!!
  21. так это замена mp-5. А мне надо полностью сюда добавить пулемет m60 с иконкой и со своим звуком...
  22. Можно ли с помощью скриптов добавить новое вооружение?
×
×
  • Create New...