Jump to content

CrazyDude

Members
  • Posts

    62
  • Joined

  • Last visited

Recent Profile Visitors

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

CrazyDude's Achievements

Snitch

Snitch (10/54)

0

Reputation

  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 Подскажите хороший компонент для создание таблички серверов.
×
×
  • Create New...