Jump to content

Alex1002

Members
  • Posts

    14
  • Joined

  • Last visited

Details

  • Gang
    [ATV]

Recent Profile Visitors

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

Alex1002's Achievements

Square

Square (6/54)

0

Reputation

  1. Changed local teams = getTeamFromName(getPlayerTeam(client)) To local teams = getTeamName(getPlayerTeam(client)) Now it Works. M.f.G Alex.W
  2. Hallo, How we can fix my problem with this table¿¿¿ createTeam ("teamOne", 235, 225, 0) createTeam ("teamTwo", 235, 225, 0) teamConfig = { ["teamOne"] = { ["spawns"] = { {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246} }, ["skins"] = {93, 111, 112, 113, 113, 124, 125, 126, 127, 211, 237, 272}, ["dim"] = {15}, }, ["teamTwo"] = { ["spawns"] = { {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246}, {-2833.5, -1950.4000244141, 50, 246} }, ["skins"] = {49, 55, 56, 57, 59, 60, 117, 118, 120, 122, 123, 169, 186, 210, 224, 225, 226, 227, 228, 229, 263, 294}, ["dim"] = {15}, }, } function teamSettings () local teams = getTeamFromName(getPlayerTeam(client)) <-- here local spawn = teamConfig[teams]["spawns"][math.random(1, #teamConfig[teams]["spawns"])] <-- here local skin = teamConfig[teams]["skins"][math.random(1, #teamConfig[teams]["skins"])] local dimen = teamConfig[teams]["dim"] spawnPlayer(client, spawn[1], spawn[2], spawn[3], spawn[4]) setElementModel(client, skin) setElementDimension(client, dimen[1]) fadeCamera (client, true) setCameraTarget (client, client) showCursor(client, false) teamMemberGroupTimer () end he says, "attempt to Index field "?" (a nil value)" M.f.G Alex.W
  3. Okay, show me a alternativ M.f.G Alex.W
  4. So it Works. Serversite local sekunde = 10 --Times to Count here 10 Sec. playTime = setTimer(function() triggerClientEvent("timeRecieve",resourceRoot, sekunde) sekunde = sekunde -1 end,1000,0) Clientsite local savedSekunde = 10 -- Times to Count(Control) here 10 Sec. addEvent("timeRecieve", true) addEventHandler("timeRecieve", resourceRoot, function(newSekunde) savedSekunde = newSekunde end) addEventHandler("onClientRender",root, function() dxDrawText(savedSekunde, 400, 400, 0, 0) end) M.f.G Alex.W
  5. Okay, has not helped me I would leave only one timer with the client by DxDrawText. Server-Timer -> Send To Client -> DxDrawText , like (02:00, 01:59, 01:58…) No one who knows, how i can do that¿¿¿ M.f.G Alex.W
  6. Yes, like a Countdown. I dont know and how can i use my Code with getTickCount M.f.G Alex.W
  7. How i can show the Timer Clientside in 02:00 -> 01:59 -> 01:58… ¿¿¿ Serversite: function teamMemberGroupTimer () if (countPlayersInTeam(getTeamFromName("TeamOne")) >= 1) and (countPlayersInTeam(getTeamFromName("TeamTwo")) >= 1) then if not isTimer (playTimerOneTwo) then playTimerOneTwo = setTimer(function() outputChatBox("Timer Works") end, 6000, 9) triggerClientEvent("timeOneTwoRecieve", source, playTimerOneTwo) end end end Client addEvent("timeOneTwoRecieve", true) addEventHandler("timeOneTwoRecieve", root, function() outputChatBox("Timer Clientsite") -- <-- It Works addEventHandler("onClientRender", root, function() local tone, ttwo, tthree = getTimerDetails(playTimerOneTwo) if (tone) then dxDrawText(tone, 874, 20, 1179, 74, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end) end) M.f.G Alex.W
  8. @CodyL: thank you. I forgod post this link: https://wiki.multitheftauto.com/index.php?title=Resource:Missiontimer I use that resource for my Map-Mission Timer (missiontimer). Question: how its to do, its be look with: if … then … end M.f.G Alex.W
  9. Hallo, its a simple Question… Question: How i can get the current Time with getMissionTimerTime(TIMER) if looks like this if getTimerMission(Timer) == 0 then … end M.f.G Alex.W
  10. Thank you very much @CodyL: So how i can cancel the Timer, if the Team less than one¿¿¿ function teamMemberGroup () if (countPlayersInTeam(getTeamFromName("TeamEins")) >= 1) and (countPlayersInTeam(getTeamFromName("TeamZwei")) >= 1) then if not isTimer(timerPlayGame) then timerPlayGame = setTimer (function() outputChatBox("Es funktioniert") end, 6000, 9) elseif (countPlayersInTeam(getTeamFromName("TeamEins")) < 1) or (countPlayersInTeam(getTeamFromName("TeamZwei")) < 1) then if isTimer(timerPlayGame) then outputChatBox("ALLES NUR KASE") killTimer(timerPlayGame) end end end end this doesn't work with killTimer, because the TeamCount is not less 1… M.f.G Alex.W
  11. Answere: It WORKS addEventHandler ( "onPlayerQuit", root, function ( ) local team = getPlayerTeam ( source ) if team then local teamname = getTeamName ( team ) if teamname == "TeamOne" or teamname == "TeamTwo" then if countPlayersInTeam ( team ) - 1 == 0 then if isTimer ( timerCount ) then killTimer ( timerCount ) end end end end end ) Old- Question M.f.G Alex.W
  12. Alex1002

    Counter

    Thank you very much, I have not known the MTA something like that has to offer M.f.G Alex.W
  13. Alex1002

    Counter

    How does it look out, if to get down the number of the Team-Member I would allow to leave with of the team and that I finish the running timer with not enough Members??? M.f.G Alex.W
  14. Alex1002

    Counter

    Hello, I have a Counter more always adds one to me for each of the two teams if who chooses one of the sides, I have the problem now this one as soon as from at all which reasons the team always leaves, too somebody should be counted down, that is -1, this only doesn't happen and it even shall be broken off at 0 against 1. local teamOne = 0 local teamTwo = 0 function teamSettings () if getTeamName(getPlayerTeam(client)) == "ONETeam" then teamOne = teamOne + 1 if teamOne >= 1 and teamTwo >= 1 then teamSpawnTime () end elseif getTeamName(getPlayerTeam(client)) == "TWOTeam" then teamTwo = teamTwo + 1 if teamTwo >= 1 and teamOne >= 1 then teamSpawnTime () end end function teamSpawnTime () if teamOne >= 1 and teamTwo >= 1 then if isTimer(gameTimeCounter) == false then gameTimeCounter = setTimer (function() outputChatBox("Works") end, 6000, 9) end end end Now my question: How I have the team crowd fetch down as soon as somebody leaves a team and the timer kill at not sufficient players again M.f.G Alex.W
×
×
  • Create New...