Jump to content

Fory

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Fory

  • Rank
    Rat

Recent Profile Visitors

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

  1. 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.
  2. 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 (
  3. Fory

    help please

    Now it doesn't write out a choke, it only writes to AFK when there's no AFK in the player.
  4. 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?
  5. Fory

    help please

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

    help please

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

    help please

    the trouble is I set it up for 5 minutes and even writes if the player is not AFK
  8. Fory

    help please

    [Error]: afkC.lua:2: attempt to call global 'getLocalPlayer' (a nil value) [Error]: afkC.lua:2: attempt to call global 'getLocalPlayer' (a nil value) Line 2. getLocalPlayer()
  9. Fory

    help please

    setTimer(function() if getElementData(getLocalPlayer(),"afk") == false then setElementData (getLocalPlayer(),"afk",true) outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getLocalPlayer() .. "#ffffff 5 perce AFK dutyban.", getRootElement(), 255, 255, 255, true) end end, 10, 1) Line 4:: [ERROR]: afkC.lua:88: attempt to concatenate a userdata value.
  10. Fory

    AFK system

    ERROR: Loading script failed: var_afk\server.lua:7:')' expected (to close '(' at line 1) near 'end' ezt írja ki, de nem tudom hogy miért.
  11. Fory

    AFK system

    Valami hibát ír a 12. Sorban setTimer( function () if getElementData(getLocalPlayer(),"afk") == false then local getLocalPlayer = targetPlayer setElementData (getLocalPlayer(),"afk",true) outputChatBox("#efad5f[AFK]: #42c2d2" .. targetPlayer .. "#ffffff 5 of his minutes AFK.", getRootElement(), 255, 255, 255, true) else setElementData (getLocalPlayer(),"afk",false) outputChatBox("#efad5f[AFK]: #42c2d2" .. targetPlayer .. "#ffffff Back Up.", getRootElement(), 255, 255, 255, true) end end end 2500, 0)
  12. Fory

    AFK system

    Hello everyone 1-2 ideas would be needed, how I shall begin it how new AFK to a system, this would be only so much that the chatboxba announces it that: outputChatBox("#efad5f[AFK]: " Name " 5 of his minutes AFK", getRootElement(), 255, 255, 255, true) else outputChatBox("#efad5f[AFK]: "name" back up", getRootElement(), 255, 255, 255, true) --------------------NEXT---------------------- outputChatBox("#efad5f[AFK]: " Name " 10 of his minutes AFK", getRootElement(), 255, 255, 255, true) else outputChatBox("#efad5f[AFK]: "name" back up", getRootElement()
  13. function blowPlayerVehicle(thePlayer, commandName, target) if (exports.mta_global:isPlayerAdmin(thePlayer)) then if not (target) then outputChatBox(" #d93167[KarlMTA]: #FFFFFF/" .. commandName .. " [NévRészlet]", thePlayer, 255, 194, 14, true) else local targetPlayer, targetPlayerName = exports.sas_global:findPlayerByPartialNick(thePlayer, target) if targetPlayer then local logged = getElementData(targetPlayer, "loggedin") if (logged==0) then outputChatBox(" #d93167[
  14. Hello everyone, 1 account is system-em, i tried setTimer-t there to lay his front and a drawDxImage-t with what 15 seconds of waiting is needed in order for it not to be possible to register until 15 seconds time, with what there for a picture a doggie it would be laid, that if somebody can help him with a food then calls the number there it is informed, that hovak ell to carry, my dad protector of the animals and works on a hospice, I believed it because of this how I try to call the people_nation attention to the fact that they are not alone but the doggie is alone,. Thank you.
×
×
  • Create New...