Jump to content

Sarrum

Scripting Moderators
  • Posts

    1,039
  • Joined

  • Days Won

    11

Everything posted by Sarrum

  1. https://community.multitheftauto.com/ind ... ls&id=6152 by CrystalMV (http://crystalmv.net84.net) DONE
  2. playSound3D Поищите на https://community.multitheftauto.com/
  3. Ressource 'freeroam' wird ausgeführt? -> fr_server.lua, löschen event 'onPlayerChat' (line: ~ 402-423)
  4. https://wiki.multitheftauto.com/wiki/Pre ... ables_list
  5. Server: function chatMessage ( message, type ) local accName = getAccountName ( getPlayerAccount ( source ) ) local name = getPlayerName ( source ) if ( type == 0 ) then if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then outputChatBox ( name .. "#FFA500[C.J.M. Admin m. V.]#FFFFFF:" .. message, root, 255, 255, 255, true ) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( name .. "#FFFF00[C.J.M. Admin]#FFFFFF:" .. message, root, 255, 255, 255, true ) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "V.I.P." ) ) then outputChatBox ( name .. "#ECD872[V.I.P.]#FFFFFF:" .. message, root, 255, 255, 255, true ) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Militaer" ) ) then outputChatBox ( name .. "#C9BE62[Militar]#FFFFFF:" .. message, root, 255, 255, 255, true ) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "S.W.A.T." ) ) then outputChatBox ( name .. "#151B8D[s.W.A.T.]#FFFFFF:" .. message, root, 255, 255, 255, true ) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Citizen" ) ) then outputChatBox ( name .. "#F88017-Burger-#FFFFFF:" .. message, root, 255, 255, 255, true ) end end end addEventHandler ( "onPlayerChat", root, chatMessage )
  6. Sarrum

    Buy flip

    You need to give the resource access to executeCommandHandler in the acl.xml file.
  7. Replace ':~' with something other.
  8. Может: firstAid = createPickup ( docCar_x, docCar_y, docCar_z, 0, 100, 10000 ) ?
  9. Try if isElement ( robhouseMarker ) and isElement ( robhouseBlip ) then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end
  10. local musicStream = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" function onResourceStart ( ) sound = playSound ( musicStream, true ) end function makeRadioStayOff ( ) setRadioChannel ( 0 ) cancelEvent ( ) end function toggleSong ( ) if not songOff then setSoundVolume ( sound, 0 ) songOff = true removeEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) else setSoundVolume ( sound, 1 ) songOff = false setRadioChannel ( 0 ) addEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) end end function renderText ( ) if not songOff then dxDrawText ( "[RADIO] Radio is switched on", 0, 0, 5, 5, tocolor ( 0, 0, 0, 255 ), 1, "default-bold" ) else dxDrawText ( "[RADIO] Radio is switched off", 0, 0, 5, 5, tocolor ( 0, 0, 0, 255 ), 1, "default-bold" ) end end addEventHandler ( "onClientResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) addEventHandler ( "onClientPlayerVehicleEnter", root, makeRadioStayOff ) addEventHandler ( "onClientRender", root, renderText ) addCommandHandler ( "radio", toggleSong )
  11. На данный момент нет такой возможности.
  12. Need encode lua in UTF-8 without BOM.
  13. Извините, наболело.
  14. Пасаны, нас наеобманули, расходимся. Основами даже не пахнет.
  15. Худ можно заменить шейдерами: search.php?keywords=shader+replace Оружие: Client_Scripting_Functions#Engine_functions Звуки заменить нельзя, можно наложить новые на старые: playSound / playSound3D
  16. С запятой ошибся, ололоолооло.
  17. Сейчас тазиков в мта на русских серверах, больше чем игроков.
  18. Sarrum

    Server list spam

    Fake server: mtasa://91.105.232.64:22007 Copied my server name.
  19. http://cs403322.userapi.com/v403322025/ ... -o7a_U.jpg
×
×
  • Create New...