Jump to content

Fory

Members
  • Posts

    40
  • Joined

  • Last visited

About Fory

  • Birthday 15/09/2003

Details

  • Location
    Grove Street

Recent Profile Visitors

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

Fory's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Fory

    Image screen...

    Hello everyone, I want to achieve that when I enter an interior, let me do the following standing picture in the picture, then if you enter, you have all hope. DxDrawImage can still be found, and how do I get started? the image should disappear after 10 seconds. another good morning / nice day / nice evening
  2. Fory

    Image screen...

    Hello everyone, I would like to reach it, that if I enter an interiorba let the next chin perform a picture on the picture then if you enter hadj up with all hopes. DxDrawImage is found till now, and with what I shall set about the others? would be needed so that the picture after 10 seconds tünjön away. another good morning / beautiful day / beautiful evening
  3. Fory

    [HELP] stat panel

    Excuse me, that onto him I answer 2 months, but I did not find the time for him. I say thank you your help, faultless one nicely!
  4. Fory

    [HELP] stat panel

    the Client-in too the showingPlayer is in him --CLINET SIDE function statpanelOpen(showP) if showStats then showStats = false showingPlayer = false statpanelOpened = false else showStats = true if showP ~= localPlayer then showingPlayer = showP else showingPlayer = localPlayer end statpanelOpened = true end end addEvent("statpanelOpen", true) addEventHandler("statpanelOpen", root, statpanelOpen) the /debugscript 3 write nothing. the goto-ra I click then teleportál, only that trouble, that to myself,
  5. Fory

    [HELP] stat panel

    the debug writes nothing, in fact the showingPlayer, it targetPlayer function getAdminPanel(thePlayer, commandName, targetPlayer) if targetPlayer then local targetPlayer, targetPlayerName = exports.las_global:findPlayerByPartialNick(thePlayer, targetPlayer) if not (targetPlayer) then outputChatBox("#d75959[LasMTA]:#ffffff Nincs ilyen játékos.", thePlayer, 255, 255, 255, true) return end showingPlayer = targetPlayer else showingPlayer = thePlayer end triggerClientEvent(thePlayer, "statpanelOpen", thePlayer, showingPlayer) end addCommandHandler("stat", getAdminPanel, false, false)
  6. Hello everyone! My problem, how I did it a stat panel "/stat [id] it's working, the player shows your data, on the other hand and I got it ready buttons, -goto (to the player teleport) -gethere (player to yourself telepor) -fixveh (fixes the vehicle) -unflip (let him turn the vehicle upside down) -vhspawn (teleport to the city hall) and from among these the vhspawn button, unflip, fixveh, these work, the goto and the gethere command that trouble, that to myself teleport, and myself teleport self to myself. I would like it, that some müködjön, that for who I take it the stat-let ját do the command on that player Script: Server --GETHERE function getHere(thePlayer, target) if (exports.las_global:isPlayerSeged(thePlayer)) then if showingPlayer then local logged = getElementData(showingPlayer, "loggedin") if (logged==0) then outputChatBox("the player is not login", thePlayer, 255, 0 , 0, true) else local x, y, z = getElementPosition(thePlayer) local interior = getElementInterior(thePlayer) local dimension = getElementDimension(thePlayer) local r = getPedRotation(thePlayer) setCameraInterior(showingPlayer, interior) -- Maths calculations to stop the target being stuck in the player x = x + ( ( math.cos ( math.rad ( r ) ) ) * 2 ) y = y + ( ( math.sin ( math.rad ( r ) ) ) * 2 ) if (isPedInVehicle(showingPlayer)) then local veh = getPedOccupiedVehicle(showingPlayer) setElementAngularVelocity(veh, 0, 0, 0) setElementPosition(veh, x, y, z + 1) setTimer(setElementAngularVelocity, 50, 20, veh, 0, 0, 0) setElementInterior(veh, interior) setElementDimension(veh, dimension) else setElementPosition(showingPlayer, x, y, z) setElementInterior(showingPlayer, interior) setElementDimension(showingPlayer, dimension) end outputChatBox("Sikeresen magadhoz teleportáltad 'succes'", thePlayer,0,255,0,true) end end end end addEvent("getHere", true) addEventHandler("getHere", getRootElement(), getHere) --GOTO function gotoPlayer(thePlayer, target) if getElementData(thePlayer, "adminlevel") > 1 then if showingPlayer then local logged = getElementData(showingPlayer, "loggedin") if (logged==0) then outputChatBox("the player is not login", thePlayer, 255, 0 , 0, true) else local x, y, z = getElementPosition(showingPlayer) local interior = getElementInterior(showingPlayer) local dimension = getElementDimension(showingPlayer) local r = getPedRotation(showingPlayer) -- Maths calculations to stop the player being stuck in the target x = x + ( ( math.cos ( math.rad ( r ) ) ) * 2 ) y = y + ( ( math.sin ( math.rad ( r ) ) ) * 2 ) setCameraInterior(thePlayer, interior) if (isPedInVehicle(thePlayer)) then local veh = getPedOccupiedVehicle(thePlayer) setElementAngularVelocity(veh, 0, 0, 0) setElementInterior(thePlayer, interior) setElementDimension(thePlayer, dimension) setElementInterior(veh, interior) setElementDimension(veh, dimension) setElementPosition(veh, x, y, z + 1) warpPedIntoVehicle ( thePlayer, veh ) setTimer(setElementAngularVelocity, 50, 20, veh, 0, 0, 0) else setElementPosition(thePlayer, x, y, z) setElementInterior(thePlayer, interior) setElementDimension(thePlayer, dimension) end outputChatBox("Elteleportáltál a kiválasztott játékoshoz 'succes'", thePlayer,0,255,0,true) end end end end addEvent("gotoPlayer", true) addEventHandler("gotoPlayer", getRootElement(), gotoPlayer) the showingPlayer that's it at who I look (theoretically) CLIENT --GOTO function buttonClicks2(button, state) if statpanelOpened then if button == "left" and state == "down" then if not countSelector then if isInSlot(sx/2+200, sy/2-260/2, 180,25) then triggerServerEvent("gotoPlayer", localPlayer, showingPlayer) currentTab = 1 scrollData = 0 scrollData2 = 0 end end end end end addEventHandler("onClientClick", getRootElement(), buttonClicks2) -GETHERE function buttonClicks4(button, state) if statpanelOpened then if button == "left" and state == "down" then if not countSelector then if isInSlot(sx/2+200, sy/2-180/2, 180,25) then triggerServerEvent("getHere", localPlayer, showingPlayer) currentTab = 1 scrollData = 0 scrollData2 = 0 end end end end end addEventHandler("onClientClick", getRootElement(), buttonClicks4)
  7. sziasztok! a scriptbe arra kellene a segítség :local Szoveg = {"Újraindítási folyamat...", "Teszt1...", "Teszt2..."}, ezt úgy szeretném, hogy előjön az újraindítási folyamat, aztán eltűnik és jöjjön a Teszt1, majd az is eltünjön, és jöjjön a Teszt2 (((SeeMTA-n mikor bejelentkezel akkor van olyan hogy "SeeMTA v3 betöltése...", "Felhasználó hitelesítése...", "Karakter betöltése..."} előjön ott is az első aztán rá 1mp-re eltünik, és így jön a többi.)) nos én próbálkoztam, de cask az első jön elő az "Újraindítási folyamat..." addEventHandler("onClientRender", root, function () local szovegAlpha = 255 if szovegAlpha > 0 and not kovetkezo then szovegAlpha = szovegAlpha -1.5 elseif szovegAlpha == 0 and not kovetkezo then kovetkezo = true end if kovetkezo and not kovetkezo2 and szovegAlpha < 165 then szam = 2 szovegAlpha = szovegAlpha+1.5 elseif szovegAlpha == 165 then kovetkezo2 = true end if szovegAlpha > 0 and kovetkezo2 and kovetkezo4 ~= 1 then szovegAlpha = szovegAlpha -1.5 kovetkezo3 = 1 end if kovetkezo3 == 1 and szovegAlpha == 0 then szam = 3 kovetkezo4 = 1 end if kovetkezo4 == 1 and szovegAlpha < 165 and not kovetkezo6 then szovegAlpha = szovegAlpha +1.5 kovetkezo5 = true elseif kovetkezo5 and szovegAlpha == 165 then kovetkezo6 = true end if kovetkezo6 and szovegAlpha > 0 then szovegAlpha = szovegAlpha -1.5 end local seefont1 = dxCreateFont("images/bebasneuepro.ttf", 20) local Szoveg = {"Újraindítási folyamat...", "Teszt1...", "Teszt2..."} local szovegAlpha = 255 local szam = 1 local sx, sy = guiGetScreenSize() dxDrawText(Szoveg[szam], sx/2,sy/2+30, sx/2,sy/2+15, tocolor(255,255,255,szovegAlpha), 0.7, seefont1,"center", "center") end )
  8. Fory

    showplayerhealth

    if I type /showhp then which player is close to me, it shows the hp on the player as shown in the picture above, in stripes.
  9. Fory

    help please

    local lastClick = getTickCount() addEventHandler ("onClientRender",getRootElement(), function () local cTick = getTickCount () if cTick-lastClick >= 600000 then if getElementData(getLocalPlayer(),"afk") == false then local hp = getElementHealth (getLocalPlayer()) if hp > 0 then setElementData (getLocalPlayer(),"afk",true) end end end end ) addEventHandler( "onClientRestore", getLocalPlayer(), function () lastClick = getTickCount () setElementData (getLocalPlayer(),"afk",false) end ) addEventHandler( "onClientMinimize", getRootElement(), function () setElementData (getLocalPlayer(),"afk",true) end ) addEventHandler( "onClientCursorMove", getRootElement( ), function ( x, y ) lastClick = getTickCount () if getElementData(getLocalPlayer(),"afk") == true then setElementData (getLocalPlayer(),"afk",false) end end ) addEventHandler("onClientKey", getRootElement(), function () lastClick = getTickCount () if getElementData(getLocalPlayer(),"afk") == true then setElementData (getLocalPlayer(),"afk",false) end end ) setTimer(function() if isElement(getLocalPlayer()) then if getElementData(getLocalPlayer(),"afk") == false then setElementData (getLocalPlayer(),"afk",true) outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getPlayerName(getLocalPlayer()) .. "#ffffff 1 perce AFK dutyban.", thePlayer, 255, 255, true) end end end, 60000, 1) This whole afk system, which is down there we did now add.
  10. Fory

    help please

    Now it doesn't write out a choke, it only writes to AFK when there's no AFK in the player.
  11. Hi I want a /showhp command to see the life force and armor of others, I show in the picture what it should look like, I just don't know how to start her, someone's idea?
  12. Fory

    help please

    and then where is isElement (getLocalPlayer ()) then where do I paste it?
  13. Fory

    help please

    Client because that AFK system is built into a client.
  14. Fory

    help please

    the trouble is I set it up for 5 minutes and even writes if the player is not AFK
×
×
  • Create New...