Search the Community

Showing results for tags 'reset'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 2 results

  1. Sziasztok, letöltöttem 1 mta modot, mivel a haveromékkal leülünk gépezni akkor így szórakozni szoktunk, és minden lan végén resetelni szeretném a karaktereket, hogy minden jármű eltünjön meg mindenünk mivel, másnap úgy is más autókkal megyünk, és a resetcharacter nem működik, online szerverre nem terveztem, mivel ha terveznék akkor saját moddal, így csak lanra kell ------------------------------------------------------------------------------------------------------------------------RESETCHARACTER--------------------------------------------------------------------------------------------------------------------------------------------- function resetCharacter(thePlayer, commandName, ...) if exports.saf_global:isPlayerAdmin(thePlayer) then if not (...) then outputChatBox("#7cc576[SeeMTA]: #FFFFFF/" .. commandName .. " [Karakter pontos neve]", thePlayer, 255, 255, 255, true) else local character = table.concat({...}, "_") if getPlayerFromName(character) then kickPlayer(getPlayerFromName(character), "Karakter viszaállítás") end local result = dbPoll ( dbQuery( connection, "SELECT id, account FROM characters WHERE charactername='??' LIMIT 1", character), -1 ) local charid = tonumber(result[1]["id"]) local account = tonumber(result[1]["account"]) if charid then -- delete all in-game vehicles for key, value in pairs( getElementsByType( "vehicle" ) ) do if isElement( value ) then if getElementData( value, "owner" ) == charid then destroyElement( value ) end end end dbPoll ( dbQuery( connection, "DELETE FROM vehicles WHERE owner = '?'", charid), -1 ) -- un-rent all interiors local old = getElementData( thePlayer, "dbid" ) setElementData( thePlayer, "dbid", charid ) local result, sorszam = dbPoll ( dbQuery( connection, "SELECT id FROM interiors WHERE owner = '?' AND type != 2", charid), -1 ) if result and sorszam > 0 then for _, row in ipairs(result) do local id = tonumber(row["id"]) end end setElementData( thePlayer, "dbid", old ) -- get rid of all items, give him default items back dbPoll ( dbQuery( connection, "DELETE FROM itemek WHERE tipus = 1 AND tulaj = '?'", charid), -1 ) -- delete wiretransfers dbPoll ( dbQuery( connection, "DELETE FROM wiretransfers WHERE `from` = '?' OR `to` = '?'", charid, charid), -1 ) -- set spawn at unity, strip off money etc dbPoll ( dbQuery( connection, "UPDATE characters SET x=1742.1884765625, y=-1861.3564453125, z=13.577615737915, rotation=0, faction_id=-1, faction_rank=0, faction_leader=0, weapons='', ammo='', car_license=0, gun_license=0, hoursplayed=0, timeinserver=0, transport=1, lastarea='El Corona', money=250, bankmoney=500, interior_id=0, dimension_id=0, health=100, armor=0, radiochannel=100, fightstyle=0, pdjail=0, pdjail_time=0, restrainedobj=0, restrainedby=0, hunter=0, stevie=0, tyrese=0, rook=0, fish=0, truckingruns=0, truckingwage=0, blindfold=0, phoneoff=0 WHERE id = '?'", charid), -1 ) outputChatBox("Lenulláztad " .. character .. " vagyonát.", thePlayer, 0, 255, 0) if (getElementData(thePlayer, "hiddenadmin")==0) then local adminTitle = exports.saf_global:getPlayerAdminTitle(thePlayer) exports.saf_global:sendMessageToAdmins("" .. tostring(adminTitle) .. " " .. getPlayerName(thePlayer) .. " visszaállította " .. character .. " karaktert.") end else outputChatBox("Nem találom: " .. character, thePlayer, 255, 0, 0) end end end end addCommandHandler("resetcharacter", resetCharacter)
  2. I attached a song to my car, but when i'll go far away from car, the music starts from the beginning... s: how to fix this?