Jump to content

dima3367

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by dima3367

  1. dima3367

    Kicks players.

    Hello. Many players on my server having this problem, over time they just throw from the MTA. As I write in support server, I noticed that this problem only players with Windovs 32 bits. Sometimes they get an error: or: I offer players the update file krenelbase.dll or kernel32.dll then they MTA just flies without this error. What could it be? On the server, many models of cars, the size of each texture does not exceed 512x512 pixels IP server address: 46.174.50.46:22045 Thanks in advance.
  2. dima3367

    long connection.

    Yes on all servers is a problem. Tried to reinstall the MTA has not helped. Firewall and disabled anti-virus, still the same problem.
  3. dima3367

    long connection.

    Hey there! I had such a problem. Literally from nothing. Connect to the server by using stopped. More precisely the connection is in other igorka all right, and I go for a very long process zakgruzki card 5kb downloaded for 10 minutes. Previously, this was not and it was all okay. With internet connection all okay. Tried to do a restart of the server before it helps me, but the problem was a bit different and was the fact that at the time the map is loaded me give you an error "Timeout expired". Please tell me what I should do, I will be very grateful. I apologize for my bad English. Internet connection is normal, 50mbit \ second
  4. Did so, it is still not displayed in the list of cars, just an empty GUI local screenX, screenY = guiGetScreenSize() local width, height = 200, 200 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) local lp = getLocalPlayer() theWindow = guiCreateWindow(x,y,width,height,"Управления автомобилем",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) spawnBut = guiCreateButton(0.0604,0.120,0.4,0.2,"Спавн",true,theWindow) engenieBut = guiCreateButton(0.0604,0.420,0.4,0.2,"Двигатель",true,theWindow) lockBut = guiCreateButton(0.490,0.420,0.4,0.2,"Блок",true,theWindow) lightsBut = guiCreateButton(0.0604,0.720,0.4,0.2,"Фары",true,theWindow) function resourceStart () bindKey ("F3", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (theWindow) if (visableornot == true) then guiSetVisible (theWindow, false) showCursor (false) end if (visableornot == false) then guiSetVisible (theWindow, true) showCursor (true) end end addEvent ("carSpawn", true) addEvent ("carDestroy", true) function guiClick (button, state, absoluteX, absoluteY) if (source == spawnBut) then triggerServerEvent ("carSpawn", lp) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", lp) elseif (source == engenieBut) then triggerServerEvent ("engenieSwitch", lp) elseif (source == lockBut) then triggerServerEvent ("lockSwitch", lp) elseif (source == lightsBut) then triggerServerEvent ("lightsSwitch", lp) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) carshopWindow = guiCreateWindow(500,200,290,440,"Автомаркет",false) guiSetVisible (carshopWindow, false) guiSetAlpha(carshopWindow,1) guiWindowSetSizable(carshopWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"Выберите машину",true,carshopWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") carGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,carshopWindow) guiGridListSetSelectionMode(carGridList,0) carColumn = guiGridListAddColumn(carGridList,"Автомобиль",0.5) costColumn = guiGridListAddColumn(carGridList,"$",0.3) local nameToID = { ["VW Golf"] = 410, ["Subaru Impreza"] = 551, ["Yamaha Aerox"] = 448, } local vehiclePrices = { [410] = 25000, [551] = 40000, [448] = 15000, } function getIDFromCustomName(name) if (not name) then return end for k, v in ipairs(nameToID) do if (k ~= name) then return end local id = nameToID[k] return id end end function getPriceFromID(id) if (not id) then return end for k, v in ipairs(vehiclePrices) do if (k ~= id) then return end local price = vehiclePrices[k] return price end end for i,v in ipairs (nameToID) do local row = guiGridListAddRow(carGridList) guiGridListSetItemText (carGridList, row, 1, i, false, true) guiGridListSetItemText (carGridList, row, 2, v, false, true) end guiSetAlpha(carGridList,1) buyButton = guiCreateButton(0.0476,0.8624,0.7778,0.0963,"Купить!",true,carshopWindow) guiSetAlpha(buyButton,1) closeButton = guiCreateButton(0.8571,0.8624,0.0899,0.1009,"x",true,carshopWindow) addEvent ("viewGUI", true) function viewGUI () if (getLocalPlayer() == source) then guiSetVisible (carshopWindow, true) showCursor (true) end end addEventHandler ("viewGUI", getRootElement(), viewGUI) function onClientGUIClick (button, state, absoluteX, absoluteYe) if (source == buyButton) then guiSetVisible (carshopWindow, false) showCursor (false) if (guiGridListGetSelectedItem (carGridList)) then local carName = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem (carGridList), 1) local carID = getIDFromCustomName(carName) local carCost = getPriceFromID(carID) triggerServerEvent ("carShopCarBuy", getLocalPlayer(), carID, carCost, carName) end elseif (source == closeButton) then guiSetVisible (carshopWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick)
  5. I did so: local screenX, screenY = guiGetScreenSize() local width, height = 200, 200 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) local lp = getLocalPlayer() theWindow = guiCreateWindow(x,y,width,height,"Управления автомобилем",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) spawnBut = guiCreateButton(0.0604,0.120,0.4,0.2,"Спавн",true,theWindow) engenieBut = guiCreateButton(0.0604,0.420,0.4,0.2,"Двигатель",true,theWindow) lockBut = guiCreateButton(0.490,0.420,0.4,0.2,"Блок",true,theWindow) lightsBut = guiCreateButton(0.0604,0.720,0.4,0.2,"Фары",true,theWindow) function resourceStart () bindKey ("F3", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (theWindow) if (visableornot == true) then guiSetVisible (theWindow, false) showCursor (false) end if (visableornot == false) then guiSetVisible (theWindow, true) showCursor (true) end end addEvent ("carSpawn", true) addEvent ("carDestroy", true) function guiClick (button, state, absoluteX, absoluteY) if (source == spawnBut) then triggerServerEvent ("carSpawn", lp) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", lp) elseif (source == engenieBut) then triggerServerEvent ("engenieSwitch", lp) elseif (source == lockBut) then triggerServerEvent ("lockSwitch", lp) elseif (source == lightsBut) then triggerServerEvent ("lightsSwitch", lp) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) carshopWindow = guiCreateWindow(500,200,290,440,"Автомаркет",false) guiSetVisible (carshopWindow, false) guiSetAlpha(carshopWindow,1) guiWindowSetSizable(carshopWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"Выберите машину",true,carshopWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") carGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,carshopWindow) guiGridListSetSelectionMode(carGridList,0) carColumn = guiGridListAddColumn(carGridList,"Автомобиль",0.5) costColumn = guiGridListAddColumn(carGridList,"$",0.3) local nameToID = { ["VW Golf"] = 410, ["Subaru Impreza"] = 551, ["Yamaha Aerox"] = 448, } local vehiclePrices = { [410] = 25000, [551] = 40000, [448] = 15000, } function getIDFromCustomName(name) if (not name) then return end for k, v in ipairs(nameToID) do if (k ~= name) then return end local id = nameToID[k] return id end end function getPriceFromID(id) if (not id) then return end for k, v in ipairs(vehiclePrices) do if (k ~= id) then return end local price = vehiclePrices[k] return price end end guiSetAlpha(carGridList,1) buyButton = guiCreateButton(0.0476,0.8624,0.7778,0.0963,"Купить!",true,carshopWindow) guiSetAlpha(buyButton,1) closeButton = guiCreateButton(0.8571,0.8624,0.0899,0.1009,"x",true,carshopWindow) addEvent ("viewGUI", true) function viewGUI () if (getLocalPlayer() == source) then guiSetVisible (carshopWindow, true) showCursor (true) end end addEventHandler ("viewGUI", getRootElement(), viewGUI) function onClientGUIClick (button, state, absoluteX, absoluteYe) if (source == buyButton) then guiSetVisible (carshopWindow, false) showCursor (false) if (guiGridListGetSelectedItem (carGridList)) then local carName = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem (carGridList), 1) local carID = getVehicleModelFromName (carName) local carCost = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem (carGridList), 2) triggerServerEvent ("carShopCarBuy", getLocalPlayer(), carID, carCost, carName) end elseif (source == closeButton) then guiSetVisible (carshopWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick) But the list is empty cars.
  6. Oh! Sorry my english is very bad. Yes that's what I meant! But I do not know how to insert me in this script D: Can you help me?
  7. Hi all I have a problem. I have a script to auto, and it has a natural system of buying a car, I put the ID cars and the price of them and as a result in the purchase of the player names appear standart cars from GTA San Andreas. I want to do that to the players name appears to ask me. Just do not know how to do it, just know about and trying to do, but it did not work, the script had stopped working, maybe someone else can help? Here's the script without my patch local lp = getLocalPlayer() theWindow = guiCreateWindow(x,y,width,height,"Управления автомобилем",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) spawnBut = guiCreateButton(0.0604,0.120,0.4,0.2,"Спавн",true,theWindow) engenieBut = guiCreateButton(0.0604,0.420,0.4,0.2,"Двигатель",true,theWindow) lockBut = guiCreateButton(0.490,0.420,0.4,0.2,"Блок",true,theWindow) lightsBut = guiCreateButton(0.0604,0.720,0.4,0.2,"Фары",true,theWindow) function resourceStart () bindKey ("F3", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (theWindow) if (visableornot == true) then guiSetVisible (theWindow, false) showCursor (false) end if (visableornot == false) then guiSetVisible (theWindow, true) showCursor (true) end end addEvent ("carSpawn", true) addEvent ("carDestroy", true) function guiClick (button, state, absoluteX, absoluteY) if (source == spawnBut) then triggerServerEvent ("carSpawn", lp) elseif (source == destroyBut) then triggerServerEvent ("carDestroy", lp) elseif (source == engenieBut) then triggerServerEvent ("engenieSwitch", lp) elseif (source == lockBut) then triggerServerEvent ("lockSwitch", lp) elseif (source == lightsBut) then triggerServerEvent ("lightsSwitch", lp) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) carshopWindow = guiCreateWindow(500,200,290,440,"Автомаркет",false) guiSetVisible (carshopWindow, false) guiSetAlpha(carshopWindow,1) guiWindowSetSizable(carshopWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"Выберите машину",true,carshopWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") carGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,carshopWindow) guiGridListSetSelectionMode(carGridList,0) carColumn = guiGridListAddColumn(carGridList,"Автомобиль",0.5) costColumn = guiGridListAddColumn(carGridList,"$",0.3) local cars = {{492,20000},{405,23000},{404,18000},{458,24000},{445,25000},{467,28000}} for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (carGridList) guiGridListSetItemText (carGridList, row, 1, carName, false, true) guiGridListSetItemText (carGridList, row, 2, tostring(v[2]), false, true) end guiSetAlpha(carGridList,1) buyButton = guiCreateButton(0.0476,0.8624,0.7778,0.0963,"Купить!",true,carshopWindow) guiSetAlpha(buyButton,1) closeButton = guiCreateButton(0.8571,0.8624,0.0899,0.1009,"x",true,carshopWindow) addEvent ("viewGUI", true) function viewGUI () if (getLocalPlayer() == source) then guiSetVisible (carshopWindow, true) showCursor (true) end end addEventHandler ("viewGUI", getRootElement(), viewGUI) function onClientGUIClick (button, state, absoluteX, absoluteYe) if (source == buyButton) then guiSetVisible (carshopWindow, false) showCursor (false) if (guiGridListGetSelectedItem (carGridList)) then local carName = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem (carGridList), 1) local carID = getVehicleModelFromName (carName) local carCost = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem (carGridList), 2) triggerServerEvent ("carShopCarBuy", getLocalPlayer(), carID, carCost, carName) end elseif (source == closeButton) then guiSetVisible (carshopWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick) Here is a line for the price of the car and going local cars = {{492,20000},{405,23000},{404,18000},{458,24000},{445,25000},{467,28000}} local vehicles = {{"VW Golf", 410},{"Subaru Impreza", 551},{"Yamaha Aerox", 448}} But there was no work and I do not know how to register a price. Prompt me please, I will be very grateful.
  8. Hello all! Please tell me how can I make the system not anti censorship words. For example: The player writes a bad word in chat and it is replaced with ****. These bad words I need to register manually in the script. thanks in advance
  9. Hey there! Tell me how to change my standard TDM modes. Namely, change skins that will spawn the players. Just tell us how to create a map for TDM in Map Editor.
  10. Hello all! How instal this gamemode? https://community.multitheftauto.com/index.php?p= ... s&id=10487
  11. Hey there! Help to make the system for cars VIP players. The essence of that is the player presses a button and it opens GUI with a list of cars. This list is simple and is just as the name suggests, the name and nazhmiaesh sozdetsya cars. Well that would work on the principle of freeroam. And of course what would the script was limited to a certain group in the ACL. Who can please help, I will be very grateful to you.
  12. Hi! I installed the MTA objects SAMP from Miaso. Made a map, save it, filled to the server, and the objects do not appear samp, what to do? As they add to the server? To all of this map is stored only with 2 files although the usual MTA with 4.
  13. Hello everyone! Help create a script to hide the opening and chat and thin at the touch of a button on the keyboard, for example "i". Player presses the button and it disappears chat and hud. Presses again and he reopens chat and hud
  14. Hello everyone! I want to make a new year disco area! Everything has been built up in your mappings, but I want to do with music speakers (Her, I would wish to broadcast via online radio), do not tell how to do it? It seems to be somewhere even seen a script! Thanks in advance!
  15. Add a script to the admin group and corrected the server part, but still why is not the player for privyshenie kicked from server.
  16. Thank you very much, but why not kicked from server for players privyshenie. What could it be?
  17. dima3367

    speed limit

    Hi! Who can help me make a script to check the speed of cars. That is, I need the script to check the player's speed, for example in the script max speed of 1000 km / h and if this value privyshaet player, it kicked from server marked "kick for the violation." I want to do this because of the fact that I have a server that's Factory settings taky script: https://community.multitheftauto.com/in ... ls&id=3716 With this script players make ram settings and prevent other players. I would be very grateful!
×
×
  • Create New...