
Estevam2d
Members-
Posts
178 -
Joined
-
Last visited
Everything posted by Estevam2d
-
Thanks again, ta very best this script, thank it. I'm glad you guys help me.
-
was, it is true, thank you function test(player) if isPedInVehicle( player ) then if getElementType ( player ) == "player" then local vehicle = getPedOccupiedVehicle ( player ) teste = getVehicleController ( source ) if vehicle then Controller = setTimer(takePlayerMoney, 2000, 0, player, 1) Passageiro = setTimer(givePlayerMoney, 2000, 0, teste, 1) end end end end addEventHandler("onVehicleStartEnter",getRootElement(),test)
-
I am creating the taxi driver working , I get money but not remove the passenger someone help me ? side-server function test(client) local vehicle = getPedOccupiedVehicle( client ) local driver = getVehicleController( vehicle ) timer = setTimer(function() givePlayerMoney( driver, 1) takePlayerMoney ( vehicle, 1 ) -- not cut passenger money end,2000,0) end addEventHandler("onVehicleStartEnter",getRootElement(),test)
-
Solidsnake14 Thanks again, helping me always. BlipsMarkPlayer = getPlayerFromName ( guiGridListGetItemText ( Gradradarplayer, guiGridListGetSelectedItem ( Gradradarplayer ), 1 ) ) local blip = createBlipAttachedTo(BlipsMarkPlayer, 3, 2, 0, 0, 0, 255, 1)
-
I'm having trouble creating a blips to select a player name in the list. Ai this playerBlips = {} ----playerradar addEventHandler ("onClientGUIClick", getRootElement(), function() if (source == playersradar) then Gradradarplayer = guiCreateGridList(43.5,80,265,300, false, Image) guiGridListSetSortingEnabled( Gradradarplayer, false ) Locais = guiGridListAddColumn(Gradradarplayer, "Jogadores online", 0.9) Blipsfix = guiCreateButton(46.4,390,260,30,"Fixar Blips no Jogador",false,Image) for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( Gradradarplayer ) guiGridListSetItemText ( Gradradarplayer, row, Locais, getPlayerName ( playeritem ) or "Sem dados", false, false ) addEventHandler ("onClientGUIClick", getRootElement(), function() if (isElement(blib)) then destroyElement(blib) end if (source == Blipsfix) then for k, thePlayer in ipairs(getElementsByType("player")) do --My difficulty is here if not (playerBlips[thePlayer]) and not (thePlayer == localPlayer) then playerBlips[thePlayer] = createBlipAttachedTo(thePlayer, 3, 2, 0, 0, 0, 255, 1) setElementParent(playerBlips[thePlayer], playerBlipRoot) guiSetVisible(Gradradarplayer, false) guiSetVisible(Blipsfix, false) showCursor(false) end end end end )
-
get a table of all the players in the server, but how to get just one? Sorry for the question is that really do not know. for k, thePlayer in ipairs(getElementsByType("player")) do
-
thanks again managed to do.
-
thank you for the tip triggerEvent. I have a problem that when I enter the cylinder window appears for all, there is something that can evitalo appear for all and also appear just for me?
-
I have a big problem. When I use / plant, all my friends Also plant. How do I get only the plantation Appear for me? I do not want to Appear to weed for all Just who use the command will plant and not all side - Client weeddID = 3409 weeddGrowTime = 5000 pacot = 1578 upe = 128.2 esx = 4.2 addEvent("Chamarseeds",true) function teste() if getElementData ( localPlayer, "WeedBag" ) == 1 then local x,y,z = getElementPosition(localPlayer) Feno1 = createObject(weeddID,x,y,z-esx) moveObject(Feno1,weeddGrowTime,x,y,upe,0,0,0,"InOutQuad") setTimer(function() destroyElement (Feno1) pacotin1 = createObject(pacot,x,y,z-1.0) end,weeddGrowTime,1) end end addEventHandler("Chamarseeds", getRootElement(), teste) side - Server function Bandidobymanawydan (source) triggerClientEvent ( "Chamarseeds", source) outputChatBox("Seeds "..getElementData(source,"WeedBag").." " ,source,255,0,0) end addCommandHandler("plant", Bandidobymanawydan) --Cigarettes addEventHandler ( 'onPlayerQuit', root, function ( ) local account = getPlayerAccount ( source ) local getScore = getElementData ( source, 'WeedBag' ) or 0 if ( account ) and not ( isGuestAccount ( account ) ) then setAccountData ( account, 'WeedBag', getScore ) end end ) addEventHandler ( 'onPlayerLogin', root, function ( _, account ) if ( account ) then local scoreLoad = getAccountData ( account, 'WeedBag' ) if ( scoreLoad ) then setElementData ( source, 'WeedBag', scoreLoad ) end end end )
-
Galaretk é um hack, e querendo ou não os desenvolvedores do mta já se preveniram. Lembrando que o Galaretka é hack para DAYZ. E se voce foi banido é porque realmente voce usou, talvez nao tenha nem usado kkk, so de iniciar ja iria dar ban.
-
this is very fast and negative. Is very fast and positive numbers become negative. I'm desperate , I'm learning now draw. If someone help me I will be very grateful.. if seconds = 0 then removeEventHandler("onClientRender",root, createText) end -- Not working; If I remove back up and running local seconds = 500 function createText ( ) setTimer(function () seconds = seconds - 1 if seconds = 0 then removeEventHandler("onClientRender",root, createText) end -- Not working; If I remove back up and running end ,1000 , seconds) local sWidth,sHeight = guiGetScreenSize() local sw,sh = 1280,960 dxDrawText("Saira em:", 200/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) dxDrawText(""..seconds.."", 800/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )
-
was locked. I use? getTimerDetails
-
Because the time is negative? time goes very fast.
-
're not decreasing screen time function createText ( ) local seconds = 60 setTimer(function () seconds = seconds - 1 end ,1000 , seconds) local sWidth,sHeight = guiGetScreenSize() local sw,sh = 1280,960 dxDrawText("Saira em:", 500/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("."..seconds.." Segundos", 800/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )r", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )
-
What is wrong, the time does not generate? the numbers are appearing one above the other, how to solve? function createText ( ) local seconds = 60 setTimer(function () seconds = seconds - 1 end ,1000 ,60) local sWidth,sHeight = guiGetScreenSize() local sw,sh = 1280,960 dxDrawText("Saira em:", 500/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) setTimer(function () dxDrawText("."..seconds.." Segundos", 800/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) end ,1000 ,60) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )
-
how to create a time on the screen at the server side ?
-
I know not to use dxDrawText can someone help me put a count in jail? I wanted to put a time on the screen when the source is stuck on the side of the server only for a player function policeJob ( attacker, attackerweapon, bodypart, loss ) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) theWL = getPlayerWantedLevel ( source ) theSkin = getElementModel ( attacker ) if (attackerweapon == 3) and (loss > 2 ) and (theWL > 0) then if getTeamName( theTeam ) == "Policia Militar" or getTeamName( theTeam ) == "R.O.T.A" or getTeamName( theTeam ) == "FBI" or getTeamName( theTeam ) == "Exercito" then if (getPlayerWantedLevel(source) == 1) then if ( attacker ) and ( attacker ~= source ) then local aScore = getElementData(attacker, 'Players Presos') or 0 setElementData(attacker, 'Players Presos', aScore +1) givePlayerMoney(attacker, 1500) setElementPosition (source, 197.73651123047,162.57513427734,1003.0299682617, true) setElementInterior ( source, 3) theName = getPlayerName ( source ) theCop = getPlayerName ( attacker ) triggerClientEvent("horariodesaida", source) outputChatBox ( "Voce foi preso pelo policial "..theCop.. " por 1 minuto, nao tente escapar ou voce ficara bugado.", source ) exports.killmessages:outputMessage("*"..theCop.. " Prendeu o Criminoso " ..theName.." (Com 1 Estrela)", root, 10, 118, 240, true) exports.killmessages:outputMessage("*"..theName.." Voce ficara preso por 1 minuto aguarde sua saida.", source, 255, 15, 15, true) local playeraccount = getPlayerAccount ( attacker ) setPlayerWantedLevel (attacker, 0) setPlayerWantedLevel (source, 0) setTimer ( setElementPosition, 60000, 1, source, 198.60311889648,158.21235656738,1003.0234375) setElementInterior ( source, 3) end end end end end addEventHandler ("onPlayerDamage", getRootElement(), policeJob)
-
aaaaah kk 'cool worked here now.
-
I'm trying to call the server side of the draw but is not going addEvent("horariodesaida",true) addEventHandler("horariodesaida",root, function() seconds = 70 setTimer(function () seconds = seconds - 1 if seconds = 0 then removeEventHandler("onClientRender",root, drawing) end end end ,1 ,seconds) addEventHandler("onClientRender",root, drawing) ) function drawing() dxDrawText(seconds.." Seconds left", 198, 158 ,1003, 90, 3,1) end