Jump to content

opnaiC

Members
  • Posts

    156
  • Joined

  • Last visited

About opnaiC

  • Birthday 07/03/2001

Details

  • Gang
    Vagos
  • Location
    Germany

Recent Profile Visitors

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

opnaiC's Achievements

Busta

Busta (15/54)

0

Reputation

  1. I tried to reinstall it 3 times. But it is always the same problem. The file is not missing. It is in the MTA path.
  2. Hi, I am using a little server with windows server 2008. I have this problem when I try to start the mta server:
  3. https://wiki.multitheftauto.com/wiki/Database https://www.w3schools.com/sql/sql_intro.asp
  4. Hello guys, on this forum you can find a resource where you can convert GTA maps to a MTA resource. My question is now how can I edit this map. When you are converting this map you can chouse between 3 "streaming" methods: streaming, distance, static. I tried to load the map on the server and remove all default map objects to edit the map. But the problem is that the models are not replacing on the server when I start the editor. But other way it is working when I am not using the map editor. I tried all 3 methods.
  5. So look: Now the spawning cmd is working and also all vehicles disappear when the player leaves the game. When I use the /dveh cmd, the last vehicle that I spawned got delete. But when I use the cmd again the next last spawned vehicle doesnt disappear. This is the error (line 300 is the line with destroyElement in the /dveh cmd) (Why we are not removing the vehicle from the table that got deleted ?)
  6. After using ur script my chatbox start buging, the script is also not working complety. The /dveh command is not working.
  7. addEventHandler("cmdHandler",getRootElement(), function(thePlayer, command, model) local serverTime = getRealTime() local time = string.format("[%02d:%02d:%02d]", serverTime.hour, serverTime.minute, serverTime.second) if(command == "/cveh") then if tonumber(model) then local x, y, z = getElementPosition (thePlayer) local veh = createVehicle (tonumber(model), x, y, z, 0, 0, 0, "ADMIN") table.insert (vehicles, 1, {thePlayer, veh}) setElementPosition (thePlayer, x, y, z +2) return else sendMessageToPlayer ("#ce3737"..time.." Формат команды: '/cveh [model]'", thePlayer) return end end local time = nil end ) Fully working command. If I want now to delete the las spawned vehicle I use this and it works: addEventHandler("cmdHandler",getRootElement(), function(thePlayer, command) if(command == "/dveh") then for i, v in ipairs (vehicles) do local player, veh = unpack(v) if (player == thePlayer) then destroyElement (veh) table.remove (vehicles, i) return end end end end ) But now I want a function where all vehicles that a certain player spawned get deleted when he leave the game.
  8. Sorry I posted the wrong command. I have my own chat so I dont need the commandHandler. So basically I want all cars to disappear that the player spawned that left. addEventHandler ("onPlayerQuit", getRootElement(), function () for i=1,#vehicles do local player, veh = unpack(vehicles[i]) if (source == player) then destroyElement(veh) table.remove(vehicles, i) end end end )
  9. local vehicles = {} addEventHandler("cmdHandler",getRootElement(), function(thePlayer, command) if(command == "/dveh") then for i, v in ipairs (vehicles) do local player, veh = unpack(v) if (player == thePlayer) then destroyElement (veh) table.remove (vehicles, i) return end end end end ) Hi, I want the script to delete all vehicles and rows, but it only deletes the last one, why ?
  10. They are replaced. But when I start the map editor they change to the default one.
  11. opnaiC

    set skin

    What is the event handler and what do you want to do?
×
×
  • Create New...