Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. Ok, deci parerea cu limbile este proasta Tomitza, dar eu macar mi-am dat cu parerea, si v-am asteptat pe voi sa vorbiti, si mi-am dat seama ca e idee prosta , dar datu cu parerea este ceva ce multi dintre voi nici atat nu ati putut face, eu am avut multe ideei pentru axel, dar el fiind prins de spiritul baniilor , si nici nu ma ascultat.Vroiam ca sv ala sa devina ceea ce era in tracut (#1) si @Tomitza, asa se desbina tot, incepand cu jigniri dastea mici gen "Tu erai praf la roleplay", sau "tu nu aveai ce cauta cu admin"
  2. Bai baieti, eu o zic si am mai ziso: "Mai bine ne unim toti scripterii buni, sau mai putin buni (nu trebuie sa fim toti profesionisti) si sa facem un server international pe MTA de roleplay, care sa contina un sistem de 3 limbi [Los Santos = Engleza, San Fierro = Romana, Las venturas - Alta limba, ca sa fie ca de exemplu 3 tarii, si asta ar spora roleplay-ul] Si incepem ori pornind de la valhalla sau de la gamemodul care axel a incercat sa il faca , ori facem noi unul original fara buguri... asta e parerea mea ... acum nush ce sa zic. Va astept parerea! Daca intalniti greseli ortografie sau chestii dastea, imi cer scuze sunt pe tel!!!
  3. markerinside=createMarker(265.2,1915.7,19,"arrow",1,200,200,200,255,getRootElement()) marerinsidecol=createColSphere(264.2,1915.2,17,1) markeroutside=createMarker(271.8,1926.8,19,"arrow",1,200,200,200,255,getRootElement()) markeroutsidecol=createColSphere(272,1927,17,1) addEventHandler("onColShapeHit", root, function (hitPlayer) if isElement(markerinsidecol) and (source == markerinsidecol) then if (getElementType(hitPlayer) == "player") then fadeCamera ( hitPlayer, false, 0.1, 0, 0, 0 ) setTimer ( fadeCamera, 2000, 1, hitPlayer , true, 0.5 ) setElementPosition(hitPlayer,273,1929,17) end end end ) addEventHandler("onColShapeHit", root, function (hitPlayer) if isElement(markeroutsidecol) and (source == markeroutsidecol) then if (getElementType(hitPlayer) == "player") then fadeCamera ( hitPlayer, false, 0.1, 0, 0, 0 ) setTimer ( fadeCamera, 2000, 1, hitPlayer , true, 0.5 ) setElementPosition(hitPlayer,263,1913,17) end end end )
  4. no one , can see my server, all ports it's open on nightly.multitheftauto.com/ports/‎
  5. golanu21

    help

    --client side getgift = setTimer(function () getgift = nil end, 3600000, 1) timer = getTimerDetails(getgift) setElementData(localPlayer, "timer", timer) --server side addEventHandler("onPlayerQuit", root, function (player) timer = getElementData(player, "timer") outputDebugString("coie") end) server.lua:3:bad argument @ 'getElementData' [Expected element at argument1, got string 'Quit']
  6. golanu21

    help

    function onquit () triggerServerEvent("onQuit", localPlayer) end addEventHandler("onClientPlayerQuit", getRootElement(), onquit) function onQUIT ( timer ) outputDebugString("coie") end addEvent( "onQuit", true ) addEventHandler( "onQuit", root, onQUIT ) why when i quit. the debugstring not appear
  7. golanu21

    Need SQL help

    addEventHandler("onPlayerJoin", getRootElement(), function () zombie_db = connectToDB() x, y, z = getElementPosition(source) dbExec( zombie_db, "INSERT INTO characters (nume, model, health, posx, posy, posz) VALUES (?,?,?,?,?,?)", getPlayerName(source), getElementModel(source), getElementHealth(source), x, y, z ) end) take an example
  8. golanu21

    help

    hi, how i can get remaining time from a setTimer
  9. golanu21

    help

    but, how i make to use that command now, and then the player can use that command again after 1 hour playing on sv FIXED
  10. golanu21

    help

    hi guys, how i can make a command to give you something random with 1% chance to get a car
  11. Poate sa il intereseze ce vrea* el, nu ce vrei tu , fara suparare
  12. golanu21

    help

    conn = call(getResourceFromName("mysql"), "connectToDB") addEventHandler("onPlayerJoin", getRootElement(), function () local second = dbQuery( conn, "SELECT * FROM accounts WHERE nume=?", getPlayerName(source)) if second then local result, numrows = dbPoll(second, -1) end if numrows == 1 then outputChatBox("#90f030Ai deja un cont, te rugam sa te autentifici.#ff0000[/autentificare (nume) (parola)]", source, 0, 255, 255)--text1 else outputChatBox("#90f030Bun venit pe Romania Super-RPG, nu ai fost gasit in baza de date te rugam sa te inregistrezi.#ff0000[/inregistrare (Nume) (Parola)]", source, 0, 255, 255)--text2 end end ) when i am in database TEXT1 appear and when i'am not text 2 not appear..
  13. conn = call(getResourceFromName("mysql"), "connectToDB") addEventHandler("onPlayerJoin", getRootElement(), function () local ok = 0 local second = dbQuery( conn, "SELECT * FROM accounts WHERE nume=?", getPlayerName(source)) local result, numrows = dbPoll(second, -1) if numrows == 1 then -- daca exista un caracter cu numele asta atunci ok devine 1 ok = 1 outputChatBox("#90f030Ai deja un cont, te rugam sa te autentifici.#ff0000[/autentificare (nume) (parola)]", source, 0, 255, 255) -- text1 end if ok == 0 then outputChatBox("#90f030Bun venit pe Romania Super-RPG, nu ai fost gasit in baza de date te rugam sa te inregistrezi.#ff0000[/inregistrare (Nume) (Parola)]", source, 0, 255, 255) -- text2 end end) am si eu o problema, cand ma bag in baza de date, apare text1, cand nu sunt, textul 2 nu apare
  14. golanu21

    help

    function textonplayerjoin () local second = dbQuery( conn, "SELECT * FROM accounts WHERE nume=?", getPlayerName(source)) local result, numrows = dbPoll(second, -1) if numrows == 1 then outputChatBox("#90f030Ai deja un cont, te rugam sa te autentifici.#ff0000[/autentificare (nume) (parola)]", source, 255, 255, 255, true)-- text1 elseif numrows == 0 then outputChatBox("#90f030Bun venit pe Romania Super-RPG, nu ai fost gasit in baza de date te rugam sa te inregistrezi.#ff0000[/inregistrare (Nume) (Parola)]", source, 255, 255, 255, true) --text2 end end addEventHandler("onPlayerJoin", getRootElement(), textonplayerjoin) i make that, when i am in database with my name, text1 appear, but when I'm not text2 not appear
  15. golanu21

    mysql help

    --SERVER SIDE -- MySQL Connection local host = "*****"; local dbname = "***"; local username = "***"; local password = "****"; function connectToDB() rpg_db = dbConnect("mysql", "dbname="..dbname..";host="..host, username, password, "autoreconnect=1") return rpg_db end function creeazaTabel() rpg_db = connectToDB() local characters = dbExec( rpg_db, "CREATE TABLE IF NOT EXISTS characters (id INT PRIMARY KEY NOT NULL, nume CHAR(50) NOT NULL, model INT NOT NULL, health REAL NOT NULL, posx REAL NOT NULL, posy REAL NOT NULL, posz REAL NOT NULL)") local accounts = dbExec( rpg_db, "CREATE TABLE IF NOT EXISTS accounts (id INT PRIMARY KEY NOT NULL, nume CHAR(50) NOT NULL, parola CHAR(50) NOT NULL, level REAL NOT NULL, rp REAL NOT NULL, drivinglicense REAL NOT NULL, weaponlicense REAL NOT NULL)") end addEventHandler("onResourceStart", getRootElement(getThisResource()), creeazaTabel) and an export function in meta.xml function="connectToDB" type="server"/> and idk how make that: i make an other script [account-system] and when the player click on "Register" button for example, to do an dbExec on "accounts" table
  16. this help me so much thanx man
  17. Hi guys/girls, you can give me an example how to make a gui to move with interpolate betwen ?, because on wiki i don't understand
  18. golanu21

    Help PLs

    we don't give support for leaked scripts , this is form vG scripts..
  19. golanu21

    dx movement

    how i make a movement dx Text?
  20. golanu21

    F11

    How i can modify the map? :F11
  21. golanu21

    help

    local donator = tonumber(data["donator"]) if tonumber(donator) >= 1 then -- check if they're a donator exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", pmblocked, false) exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", newsblocked, false) exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", adblocked == 1, false) else -- no donator, set default things exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", 0, false) exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", false, false) exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", 0, false) end 3: attempt to compare number with nill
  22. Bag pula in toti romanii fara viitor de pe aceasta comunitate, nu stiu sa faca nimic.........., Pace!!!
×
×
  • Create New...