opnaiC

Members
  • Content count

    158
  • Joined

  • Last visited

Community Reputation

0 Neutral

About opnaiC

  • Rank
    Busta
  • 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.

  1. opnaiC

    [HELP] Server hosting on Windows Server 2008

    Thank you its working now
  2. opnaiC

    [HELP] Server hosting on Windows Server 2008

    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.
  3. Hi, I am using a little server with windows server 2008. I have this problem when I try to start the mta server:
  4. opnaiC

    [Help]Database/MySQL

    https://wiki.multitheftauto.com/wiki/Database https://www.w3schools.com/sql/sql_intro.asp
  5. opnaiC

    JResources

    Nice project!
  6. 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.
  7. opnaiC

    [HELP] Doesnt delete all rows from table

    Thank you its working now.
  8. opnaiC

    [HELP] Doesnt delete all rows from table

    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 ?)
  9. opnaiC

    [HELP] Doesnt delete all rows from table

    After using ur script my chatbox start buging, the script is also not working complety. The /dveh command is not working.
  10. opnaiC

    [HELP] Doesnt delete all rows from table

    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.
  11. opnaiC

    [HELP] Doesnt delete all rows from table

    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 )
  12. 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 ?
  13. They are replaced. But when I start the map editor they change to the default one.
  14. opnaiC

    set skin

    What is the event handler and what do you want to do?
  15. opnaiC

    setTimer function with OOP

    - deleted