Jump to content

CrazyDude

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by CrazyDude

  1. Ehm, i did not understood what are you trying to show. I already saw this movie, i know who is SCM. But what the point? >_<
  2. Nuff said. Gonna fly on the ChrML Hard.
  3. Помню когда играл в MTA:Race, был один парень(уже ник не помню). Так вот, он думал(2 года!), что голосовать нужно написав сообщение в чат, а не нажатием кнопки 1,2,3...
  4. Зайди на сервер, пропиши в консоли shownetstat 1 Сделай скрин и покажи. Вдруг все кроется здесь.
  5. executeSQLSelect returns 2-dimensional table. You are using 1-dimensional table. So try this one: function create_tables() executeSQLCreateTable ( "users", "user STRING, health INT, armor FLOAT, money INT, x FLOAT, y FLOAT, z FLOAT, wanted INT, skin INT, dim INT, int INT, r INT, g INT, b INT, jailtime INT" ) end addEventHandler("onResourceStart",resourceRoot,create_tables) function save_general() local health = getElementHealth(source) local Armor = getPedArmor(source) local money = getPlayerMoney(source) local x,y,z = getElementPosition(source) local wanted = getPlayerWantedLevel(source) local skin = getElementModel(source) local dim = getElementDimension (source) local int = getElementInterior (source) local r, g, b = getPlayerNametagColor ( source ) local playername = getPlayerName ( source ) local jailtime = getElementData(source,"jailtime") executeSQLUpdate( "users", "user = '" .. getAccountName( getPlayerAccount( source ) ) .. "', health = '" .. health .. "', armor = '" .. armor .. "', money = '" .. money .. "', x = '" .. x .. "', y = '"..y.."'z = '" .. z .."',wanted = '".. wanted .."',skin = '".. skin .."',dim = '".. dim .. "',int = '".. int .."',r = '".. r .. "',g = '".. g .."',b = '".. b .. "',jailtime = '".. jailtime .."'") end addEventHandler("onPlayerQuit",root,save_general) function save_setData() local userTable = executeSQLSelect ( "users", "user","user = '" .. getAccountName( getPlayerAccount( source ) ) .. "'", "health", "armor", "money", "x", "y", "z", "wanted","skin","dim","int","r","g","b","jailtime" ) setElementHealth(source,userTable[1][3]) setPedArmor(source,userTable[1][4]) setPlayerMoney(source,userTable[1][5]) setElementPosition( source, userTable[1][6], userTable[1][7], userTable[1][8] ) setPlayerWantedLevel(source,userTable[1][9]) setElementModel(source,userTable[1][10]) setElementDimension (source,userTable[1][11]) setElementInterior (source,userTable[1][12]) setPlayerNametagColor ( source, userTable[1][13], userTable[1][14], userTable[1][15] ) setElementData(source,"jailtime",userTable[1][16) end addEventHandler( "onPlayerLogin", root, save_setData )
  6. This resource allows you to listen your favorite music just from MTA! The only thing you need is a link to radio stream, or links directly to music files. Commands: */radio - shows/hides radio GUI */stopsound - stops stream/sound from play */vol_up,vol_down - volume controls You can bind them to any key you like for the fast access. Radio GUI has 2 tabs: Streams: Here you can add,remove and play your online streams. If you wan't to play stream, just double click on stream URL. and sounds: Here you can add,remove and play your sounds. This tab has 2 options: -Repeat - repeats currently playing sound -Radio mode - after sound ended play, the next sound will be played. This resource is CLIENT-SIDE, that means, all your URLs to streams and sounds will be same on all servers. So, you can listen your favorite music on any server! (Only problem is that server must have this resource started) When sound started or stream changed meta, you will see basic info(title,artist, etc) about new sound. Here is a linkto SVN checkout FOR MTA:SA 1.1 USE ONLY (include n-builds)
  7. https://code.google.com/p/crazy-mta-resources/ Буду добавлять свои ресурсы. (Жду когда инет подключат)
  8. У тебя ошибка в resource="sweetiemap" />
  9. Вот когда-то писал давно: http://crazy-studio.blogspot.com/2011/0 ... art-1.html http://gta-rating.ru/forum/showthread.php?t=1370
  10. Попробуй https://wiki.multitheftauto.com/wiki/SetObjectStatic
  11. Данная идея была (или все еще есть) реализована на одном популярном Freeroam серваке, не помню точно название, что-то типо (DRK или DRC), там отдельно есть гонки, фрироам, дм.
  12. Я помню писал свой для мта на дельфи, но забросил. P.S Подскажите хороший компонент для создание таблички серверов.
  13. Уже запили репорт на тот баг, который я описывал http://bugs.mtasa.com/view.php?id=6287 Сейчас отвечу на твой пост. Думаешь я так не делал? Ошибаешься. Я начал это делать даже когда не подозревал об этом баге, ибо хотел сам контролировать syncer'ов (чтобы выбирать того syncer'a у которого фпс больше а пинг меньше), но сразу появилась проблема. Когда вызывается onClientElementStreamIn, дистанция от игрока до этого педа больше 100 юнитов, и при setElementSyncer(пед,игрок), сразу срабатывает серверное событие onElementStopSync, и syncer сразу сбрасывается.
  14. И так, у меня есть пару вопросов/предложений. Я поспрашивал в ирке насчет обновления syncer'a елемента(в частности педа), и узнал, что он обновляется если дистанция между этим педом и игроком меньше 100 юнитов. Возникает проблема, если у игрока draw distance больше чем 100, то-есть у педа нету syncer'a, но игрок видит этого педа, так вот, почему-бы не сделать обновление syncer'a елемента(педа) на событие onClientElementStreamIn?
  15. You can try to use https://wiki.multitheftauto.com/wiki/Exe ... andHandler
  16. В принципе с учетом появления "File functions" для клиентов в версии 1.1, передавать можно все, что угодно. Прочитать графику на сервере, переслать строку на клиент (по частям, если все сразу не влезет), создать файл, записать и сохранить как png. А потом уже использовать. Поправьте, если вру, но ведь не обязательно графику (и не только) прописывать в meta.xml, чтобы иметь возможность работать с ней, достаточно пути к файлу? Интересно, как ты прочитаешь текстуру от dxCreateScreenSource, тебе дается ведь только указатель на эту текстуру
  17. You may create a lot of rectangles, so they will look like circle
  18. Надеюсь текстуры можно будет передавать через клиент-сервер-клиент (пробовал сейчас, не получается)
  19. 0xC97C28 - IDirect3DDevice9 pointer
  20. CrazyDude

    HELP ME PLEZ

    Lolwhaaat? You can only send more packets, but in same delay.
  21. You must declare function first, and then call it
×
×
  • Create New...