Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. You need convert boolean to string. See in arguments in function outputChatBox
  2. Try Server assert( exports.Scoreboard:addScoreboardColumn( "Country",root,2,150.0 ) ) local countryNames = { ['AD'] = 'Andorra', ['AE'] = 'United Arab Emirates', ['AF'] = 'Afghanistan', ['AG'] = 'Antigua and Barbuda', ['AI'] = 'Anguilla', ['AL'] = 'Albania', ['AM'] = 'Armenia', ['AO'] = 'Angola', ['AP'] = 'ARIPO', ['AR'] = 'Argentina', ['AT'] = 'Austria', ['AU'] = 'Australia', ['AW'] = 'Aruba', ['AZ'] = 'Azerbaijan', ['BA'] = 'Bosnia and Herzegovina', ['BB'] = 'Barbados', ['BD'] = 'Bangladesh', ['BE'] = 'Belgium', ['BF'] = 'Burkina Faso', ['BG'] = 'Bulgaria', ['BH'] = 'Bahrain', ['BI'] = 'Burundi', ['BJ'] = 'Benin', ['BM'] = 'Bermuda', ['BN'] = 'Brunei Darussalam', ['BO'] = 'Bolivia', ['BQ'] = 'Bonaire', ['BR'] = 'Brazil', ['BS'] = 'Bahamas', ['BT'] = 'Bhutan', ['BV'] = 'Bouvet Island', ['BW'] = 'Botswana', ['BY'] = 'Belarus', ['BZ'] = 'Belize', ['CA'] = 'Canada', ['CD'] = 'Congo', ['CF'] = 'Central African Republic', ['CG'] = 'Congo', ['CH'] = 'Switzerland', ['CI'] = 'Cote d?Ivoire', ['CK'] = 'Cook Islands', ['CL'] = 'Chile', ['CM'] = 'Cameroon', ['CN'] = 'China', ['CO'] = 'Colombia', ['CR'] = 'Costa Rica', ['CU'] = 'Cuba', ['CV'] = 'Cape Verde', ['CW'] = 'Curacao', ['CY'] = 'Cyprus', ['CZ'] = 'Czech Republic', ['DE'] = 'Germany', ['DJ'] = 'Djibouti', ['DK'] = 'Denmark', ['DM'] = 'Dominica', ['DO'] = 'Dominican Republic', ['DZ'] = 'Algeria', ['EC'] = 'Ecuador', ['EE'] = 'Estonia', ['EG'] = 'Egypt', ['EH'] = 'Western Sahara', ['ER'] = 'Eritrea', ['ES'] = 'Spain', ['ET'] = 'Ethiopia', ['FI'] = 'Finland', ['FJ'] = 'Fiji', ['FK'] = 'Malvinas', ['FO'] = 'Faroe Islands', ['FR'] = 'France', ['GA'] = 'Gabon', ['GB'] = 'United Kingdom', ['GD'] = 'Grenada', ['GE'] = 'Georgia', ['GG'] = 'Guernsey', ['GH'] = 'Ghana', ['GI'] = 'Gibraltar', ['GL'] = 'Greenland', ['GM'] = 'Gambia', ['GN'] = 'Guinea', ['GQ'] = 'Equatorial Guinea', ['GR'] = 'Greece', ['GT'] = 'Guatemala', ['GW'] = 'Guinea-Bissau', ['GY'] = 'Guyana', ['HN'] = 'Honduras', ['HR'] = 'Croatia', ['HT'] = 'Haiti', ['HU'] = 'Hungary', ['ID'] = 'Indonesia', ['IE'] = 'Ireland', ['IL'] = 'Israel', ['IM'] = 'Isle of Man', ['IN'] = 'India', ['IQ'] = 'Iraq', ['IR'] = 'Iran', ['IS'] = 'Iceland', ['IT'] = 'Italy', ['JE'] = 'Jersey', ['JM'] = 'Jamaica', ['JO'] = 'Jordan', ['JP'] = 'Japan', ['KE'] = 'Kenya', ['KG'] = 'Kyrgyzstan', ['KH'] = 'Cambodia', ['KI'] = 'Kiribati', ['KM'] = 'Comoros', ['KN'] = 'Saint Kitts and Nevis', ['KP'] = 'Korea', ['KR'] = 'Korea', ['KW'] = 'Kuwait', ['KY'] = 'Cayman Islands', ['KZ'] = 'Kazakhstan', ['LA'] = 'Lao People?s Republic', ['LB'] = 'Lebanon', ['LC'] = 'Saint Lucia', ['LI'] = 'Liechtenstein', ['LK'] = 'Sri Lanka', ['LR'] = 'Liberia', ['LS'] = 'Lesotho', ['LT'] = 'Lithuania', ['LU'] = 'Luxembourg', ['LV'] = 'Latvia', ['LY'] = 'Libyan Arab Jamahiriya', ['MA'] = 'Morocco', ['MC'] = 'Monaco', ['MD'] = 'Moldova', ['ME'] = 'Montenegro', ['MG'] = 'Madagascar', ['MK'] = 'Macedonia', ['ML'] = 'Mali', ['MM'] = 'Myanmar', ['MN'] = 'Mongolia', ['MO'] = 'Macao', ['MP'] = 'Northern Mariana Islands', ['MR'] = 'Mauritania', ['MS'] = 'Montserrat', ['MT'] = 'Malta', ['MU'] = 'Mauritius', ['MV'] = 'Maldives', ['MW'] = 'Malawi', ['MX'] = 'Mexico', ['MY'] = 'Malaysia', ['MZ'] = 'Mozambique', ['NA'] = 'Namibia', ['NE'] = 'Niger', ['NG'] = 'Nigeria', ['NI'] = 'Nicaragua', ['NL'] = 'Netherlands', ['NO'] = 'Norway', ['NP'] = 'Nepal', ['NR'] = 'Nauru', ['NZ'] = 'New Zealand', ['OM'] = 'Oman', ['PA'] = 'Panama', ['PE'] = 'Peru', ['PG'] = 'Papua New Guinea', ['PH'] = 'Philippines', ['PK'] = 'Pakistan', ['PL'] = 'Poland', ['PT'] = 'Portugal', ['PW'] = 'Palau', ['PY'] = 'Paraguay', ['QA'] = 'Qatar', ['RO'] = 'Romania', ['RS'] = 'Serbia', ['RU'] = 'Russian Federation', ['RW'] = 'Rwanda', ['SA'] = 'Saudi Arabia', ['SB'] = 'Solomon Islands', ['SC'] = 'Seychelles', ['SD'] = 'Sudan', ['SE'] = 'Sweden', ['SG'] = 'Singapore', ['SH'] = 'Saint Helena', ['SI'] = 'Slovenia', ['SK'] = 'Slovakia', ['SL'] = 'Sierra Leone', ['SM'] = 'San Marino', ['SN'] = 'Senegal', ['SO'] = 'Somalia', ['SR'] = 'Suriname', ['ST'] = 'Sao Tome and Principe', ['SV'] = 'Salvador', ['SX'] = 'Sint Maarten (Dutch part)', ['SY'] = 'Syrian Arab Republic', ['SZ'] = 'Swaziland', ['TC'] = 'Turks and Caicos Islands', ['TD'] = 'Chad', ['TG'] = 'Togo', ['TH'] = 'Thailand', ['TJ'] = 'Tajikistan', ['TL'] = 'Timor?Leste', ['TM'] = 'Turkmenistan', ['TN'] = 'Tunisia', ['TO'] = 'Tonga', ['TR'] = 'Turkey', ['TT'] = 'Trinidad and Tobago', ['TV'] = 'Tuvalu', ['TW'] = 'Taiwan', ['TZ'] = 'Tanzania', ['UA'] = 'Ukraine', ['UG'] = 'Uganda', ['US'] = 'United States of America', ['UY'] = 'Uruguay', ['UZ'] = 'Uzbekistan', ['VA'] = 'Holy See', ['VC'] = 'Saint Vincent', ['VE'] = 'Venezuela', ['VG'] = 'Virgin Islands', ['VN'] = 'Viet Nam', ['VU'] = 'Vanuatu', ['WS'] = 'Samoa', ['YE'] = 'Yemen', ['ZA'] = 'South Africa', ['ZM'] = 'Zambia', ['ZW'] = 'Zimbabwe' } addEventHandler( "onPlayerJoin", root, function( ) local country = exports['admin']:getPlayerCountry( source ) if country then local thecountry = countryNames[ country ] or country setElementData( source, "Country", thecountry ) outputChatBox('[JOIN] #ffffff' .. getPlayerName( source ) .. '#00FF09 has joined the server\ From #FF8900[' .. tostring( thecountry ) .. '] ', root, 2, 255, 2, true ) end end ) addEventHandler( "onPlayerChangeNick", root, function( oldNick, newNick ) outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, root, 3, 180, 255, true ) end ) addEventHandler( "onPlayerQuit", root, function( reason ) outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName( source ) .. ' #FE0000has left the Server.', root, 255, 0, 0, true ) end ) It should work. And use /debugscript 3 I tested it now and it working
  3. Клиент GUIEditor_Window = {} GUIEditor_Button = {} function openWDW( ) GUIEditor_Window[1] = guiCreateWindow( 0.0313,0.5352,0.2314,0.4362,"Special groups spawn Menu",true ) btnAdmins = guiCreateButton( 0.2025,0.0836,0.5738,0.0836,"Admins",true,GUIEditor_Window[1] ) guiSetFont( GUIEditor_Button[1],"default-bold-small" ) btnRangers = guiCreateButton( 0.2025,0.2179,0.5738,0.0836,"Rangers",true,GUIEditor_Window[1] ) guiSetFont( GUIEditor_Button[2],"default-bold-small" ) guiSetVisible( GUIEditor_Window[1], true ) wdwWarning = guiCreateWindow( 0.376,0.2474,0.3379,0.3476,"WARNING",true ) memoWarning = guiCreateMemo( 0.0289,0.0864,0.9393,0.8642,"You cant spawn as this group!",true,wdwWarning ) guiMemoSetReadOnly( memoWarning,true ) btnOK = guiCreateButton( 0.4133,0.8764,0.1532,0.0899,"OK",true,wdwWarning ) guiSetVisible( wdwWarning, false ) end addEventHandler( "onClientResourceStart", resourceRoot, openWDW ) Ты не можешь использовать onPlayerJoin т.к событие срабатывает быстрее клиента.
  4. Моё мнение ,нужно просто добавить что-то типо настройку языка в админке и кинуть патч на баг трекер. Если так пойдёт дальше ,то в будущем уже будет переведена вся админка на разные языки.
  5. Клиент addCommandHandler( "timer", function( ) local fullTime = 50 local c = fullTime+1 local timer = setTimer ( function( ) c = c - 1 outputChatBox ( "оставшееся время аренды " ..tostring( c ) ) end, 1000, fullTime+1 ) end )
  6. Kenix

    Infopanel..

    'thePlayer' is nil. function adminCheck ( ) local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable1", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin1", true ) addEventHandler( "admin1", getRootElement(), adminCheck ) function adminCheck2 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable1", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin2", true ) addEventHandler( "admin2", getRootElement(), adminCheck2 ) function adminCheck3 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable2", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin3", true ) addEventHandler( "admin3", getRootElement(), adminCheck3 ) function adminCheck4 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable2", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin4", true ) addEventHandler( "admin4", getRootElement(), adminCheck4 ) function adminCheck5 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable3", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin5", true ) addEventHandler( "admin5", getRootElement(), adminCheck5 ) function adminCheck6 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable3", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin6", true ) addEventHandler( "admin6", getRootElement(), adminCheck6 ) function adminCheck7 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable4", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin7", true ) addEventHandler( "admin7", getRootElement(), adminCheck7 ) function adminCheck8 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable4", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin8", true ) addEventHandler( "admin8", getRootElement(), adminCheck8 ) function adminCheck9 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable5", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin9", true ) addEventHandler( "admin9", getRootElement(), adminCheck9 ) function adminCheck10 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable5", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin10", true ) addEventHandler( "admin10", getRootElement(), adminCheck10 ) function adminCheck11 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable6", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin11", true ) addEventHandler( "admin11", getRootElement(), adminCheck11 ) function adminCheck12 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable6", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin12", true ) addEventHandler( "admin12", getRootElement(), adminCheck12 ) function adminCheck13 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setWritable7", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin13", true ) addEventHandler( "admin13", getRootElement(), adminCheck13 ) function adminCheck14 () local account = getPlayerAccount ( source ) if isGuestAccount ( account ) then triggerClientEvent ( "loginRequired", getRootElement()) else local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( "setReadable7", getRootElement()) else triggerClientEvent ( "justAdmins", getRootElement()) end end end addEvent( "admin14", true ) addEventHandler( "admin14", getRootElement(), adminCheck14 )
  7. Ah,yeah this is function variable but not called . Anyway addEventHandler return false. Better use event onResourceStart ( if server side ) and call function. And do not think about such issues.
  8. You need add ACL rights to resource. And in arguments function https://wiki.multitheftauto.com/wiki/AclGroupAddObject serial can't use you need use resource or user ( see on wiki ).
  9. xthepr0mise,Your getRootElement is wrong( nil ) in first file. Should be root or getRootElement( ).
  10. Лучше сделать проще: Когда ресурс запустился https://wiki.multitheftauto.com/wiki/OnResourceStart То именно тогда вызываем функцию "some".
  11. Try function findPlayer( name ) if type( name ) == 'string' then local matches = { } for _, v in pairs( getElementsByType( "player" ) ) do if getPlayerName( v ) == name then return v end local playerName = getPlayerName( v ):gsub( "#%x%x%x%x%x%x", "" ) playerName = playerName:lower( ) if playerName:find( name:lower( ), 0 ) then table.insert( matches, v ) end end if #matches == 1 then return matches[1] end return false end end function adminCMD( player, _,otherplayer, level ) if getElementData( player, "pptts.canusemakeadmin" ) then -- the shared logic local otherplayer = findPlayer( otherplayer ) if isElement( otherplayer ) then local serial = getPlayerSerial( otherplayer ) local thegroup = aclGetGroup( getElementData( otherplayer, "pptts.acl" ) ) local otherplayername = getPlayerName( otherplayer ) local playername = getPlayerName( player ) if level == "Nichts" then aclGroupRemoveObject ( thegroup, "serial." ..serial ) outputChatBox( playername.. "hat dir deine Rechte entzogen!", otherplayer ) outputChatBox( "Du hast" ..otherplayername "die Rechte entzogen!",player ) elseif level == "Member" then aclGroupRemoveObject ( thegroup, "serial." ..serial ) setElementData( otherplayer, "pptts.acl", "Member") aclGroupAddObject( aclGetGroup("Member"), "serial."..otherplayername ) outputChatBox( playername.. "hat dich zum Member gemacht!", otherplayer ) outputChatBox( "Du hast" ..otherplayername "zum Member gemacht!",player ) elseif level == "Moderator" then aclGroupRemoveObject ( thegroup, "serial." ..serial ) setElementData( otherplayer, "pptts.acl", "Moderator") aclGroupAddObject( aclGetGroup("Moderator"), "serial."..otherplayername ) outputChatBox( playername.. "hat dich zum Moderator gemacht!", otherplayer ) outputChatBox( "Du hast" ..otherplayername "zum Moderator gemacht!",player ) elseif level == "Admin" then aclGroupRemoveObject ( thegroup, "serial." ..serial ) setElementData(otherplayer, "pptts.acl", "Admin") aclGroupAddObject( aclGetGroup("Admin"), "serial."..otherplayername ) outputChatBox( playername.. "hat dich zum Admin gemacht!", otherplayer ) outputChatBox( "Du hast" ..otherplayername "zum Admin gemacht!",player ) elseif level == "VIP" then aclGroupRemoveObject ( thegroup, "serial." ..serial ) setElementData( otherplayer, "pptts.acl", "VIP" ) aclGroupAddObject( aclGetGroup("VIP"), "serial."..otherplayername ) outputChatBox( playername.. "hat dich zum VIP gemacht!", otherplayer ) outputChatBox( "Du hast" ..otherplayername "zum VIP gemacht!",player ) else outputChatBox( "NUTZUNG: /makeadmin [spieler] [Nichts/Member/Moderator/Admin/VIP]", player ) end else outputChatBox( "NUTZUNG: /makeadmin [spieler] [Nichts/Member/Moderator/Admin/VIP]", player ) end end end addCommandHandler( "makeadmin", adminCMD ) And lock in /debugscript 3. Try again i update.
  12. xthepr0mise,Your code is wrong function txdClient () tekstura = engineLoadTXD("textures/vgEhshade01_lvs.txd") engineImportTXD(tekstura, 8838 ) tekstura2 = engineLoadTXD("textures/vgncarshade1.txd") engineImportTXD(tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, PAwloClient) Correct function txdClient( ) local tekstura = engineLoadTXD( "textures/vgEhshade01_lvs.txd" ) engineImportTXD( tekstura, 8838 ) local tekstura2 = engineLoadTXD( "textures/vgncarshade1.txd" ) engineImportTXD( tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, txdClient )
  13. http://www.lua.org/manual/5.1/ function putplayerteamneu( ) local serial = getPlayerSerial (source ) if isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Member" ) ) then setPlayerTeam ( source, getTeamFromName( "Members" ) ) setElementData( source, "pptts.acl", "Members") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( source, getTeamFromName( "Moderators" ) ) setElementData( source, "pptts.acl", "Moderator") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Owner" ) ) then setPlayerTeam ( source, getTeamFromName( "Server Owners" ) ) setElementData( source, "pptts.acl", "Owner") setElementData( source, "pptts.canusemakeadmin", true) elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Admin" ) ) then setPlayerTeam ( source, getTeamFromName( "Admins" ) ) setElementData( source, "pptts.acl", "Admin") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "VIP" ) ) then setPlayerTeam ( source, getTeamFromName( "VIP" ) ) setElementData( source, "pptts.acl", "VIP") else setPlayerTeam ( source, getTeamFromName( "Players" ) ) end end addEventHandler ( "onPlayerJoin", root, putplayerteamneu )
  14. Действительно не уследил. Ну тогда просто на клиенте создавай велосипед , тогда никто не сможет увидеть кроме тебя.
  15. 1.Телепортировать в велосипед или заставить сесть в велосипед? -1 https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle -2 https://wiki.multitheftauto.com/wiki/SetControlState https://wiki.multitheftauto.com/wiki/SetElementVisibleTo
  16. <meta> <info author="youngs" type="misc" name="ACL in scoreboard" /> <script src="acl.lua" type="server"/> </meta><!-- you use <meta> ( not </meta> ) --> Understand?
  17. <meta> <info author="youngs" type="misc" name="ACL in scoreboard" /> <script src="acl.lua" type="server"/> </meta> You forgot / in end block.
  18. Kenix

    just a question

    if need create housecreator i think better use mysql/sql because you can easy change it.
  19. Kenix

    just a question

    Because house is element and you can get data. But it only in map file. So add to meta.xml <map src="some.map" /> <map> <house markerPosX="0" markerPosY="0" markerPosZ="10" owner="some" /> </map> I test it now.
  20. Kenix

    just a question

    Better Server do local house = getElementsByType( "house" ) if #house > 0 then for _,v in pairs( house ) do mark = createMarker( getElementData( v,"markerPosX" ), getElementData( v,"markerPosY" ), getElementData( v,"markerPosZ" ) ) setElementData( mark,"owner",getElementData( v,"owner" ) ) end end end <map> <house markerPosX="0" markerPosY="0" markerPosZ="10" owner="some" /> </map>
×
×
  • Create New...