Jump to content

Furzy

Members
  • Posts

    161
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Furzy

  1. pegue as coordenadas do centro com o guieditor para tirar os digitos use math.floor local sec = math.floor ( ( seconds %60 ) )
  2. Voce tem que botar a posição qe voce quer no dx nao está especificado na script function renderTime() local gDetails = getTimerDetails(time) if not gDetails then return end local remainingTime = secondsToTimeDesc( gDetails / 1000 ) dxDrawText( "Tempo de vida restante: "..tostring(remainingTime), left, top, right, bottom ) -- aqui se voce hotar 0,0,0,0 vai aparecer no canto superior esquerdo da tela por exemplo end
  3. tiro = 0 addEventHandler ("onPlayerWeaponFire", root, function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ) if tiro == 0 then outputChatBox("atiro",source) tiro = 1 end end )
  4. Joga a script de tempo no client da script samu e usa triggerClientEvent("onServerCallAddSetTimer",player)
  5. Yeah, i read. i just didnt understand you dont need be ignorant. The resource that u mean doesnt attach the object to back, its attach the weapon model to back ( ex 356,355,etc ) not the objets like your ak[player]
  6. onPlayerWeaponSwitch if you dont have weapon in hand then attach to back
  7. só bloquear o comando say cmdList = { ["me"]=true, ["say"]=true } addEventHandler("onPlayerCommand", root, function(cmdName) if cmdList[cmdName] then cancelEvent() end end)
  8. Eu acho que voce nao precisa especificar o localPlayer no paramentro da função só o ( commandname ) se n o comando vai ler o localPlayer tb exemplo /colher [localPlayer] [comando] e nao entendi tb pq o commandname ali se voce nao ta especificando ele em lugar nenhum testa sem function fcm1() nao tenho certeza nunca usei assim em client
  9. i mean , why use this, i see in some scripts element = {} function xd() element[source] = createObject end i wanna understand why use the table? maybe to get object in others functions?
  10. Why use empty table in this example? element = {} function example() element[source] = ..... end why this table?
  11. function salvardados(conta) if conta then local source = getAccountPlayer(conta) local ObterGalao = getElementData ( source, "galao" ) or 0 setAccountData ( conta, "galao", ObterGalao ) end end function dardados(conta) if not (isGuestAccount (conta)) then if (conta) then local source = getAccountPlayer(conta) local ObterGalao = getAccountData ( conta, "galao" ) or 0 setElementData ( source, "galao", ObterGalao ) end end end addEventHandler("onPlayerLogin", root, function( _, acc ) setTimer(dardados,50,1,acc) end ) function startScript ( res ) if res == getThisResource() then for i, player in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if not isGuestAccount(acc) then dardados(acc) end end end end addEventHandler ( "onResourceStart", getRootElement(), startScript ) function stopScript( res ) if res == getThisResource() then for i, player in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if not isGuestAccount(acc) then salvardados(acc) end end end end addEventHandler ( "onResourceStop", getRootElement(), stopScript ) function sair ( quitType ) local acc = getPlayerAccount(source) if not (isGuestAccount (acc)) then if acc then salvardados(acc) end end end addEventHandler ( "onPlayerQuit", getRootElement(), sair )
  12. onPlayerJoin onPlayerLogin onResourceStart
  13. Estranho..., pq nao usa o createVehicle entao? voce destroy ele e no lugar do respawn se cria dnv
  14. setAmbientSoundEnabled( "gunfire", false ) Eu desabilitei o meu só jogando no client
  15. sorry. outputChatBox("[!] #f0f0f0CarJack atmanız yasaklanmıştır!",thePlayer, 255, 0, 0, true)
  16. Mexe na posição dele bota pra spawn mais acima
  17. function checkCarJack(thePlayer, seat, jacked) veh = getPedOccupiedVehicleSeat(jacked) if jacked and veh == 0 then cancelEvent() outputChatBox("[!] #f0f0f0CarJack atmanız yasaklanmıştır!", 255, 0, 0, true) end end addEventHandler("onVehicleStartEnter", getRootElement(), checkCarJack) server-side sorry i didnt underst what youre trying
  18. Voce bota a skin da m4 no objeto , assim voce pode ter varios objetos com skin de arma , por exemplo varias armas
  19. check with setTimer removePedFromVehicle setTimer
  20. s setElementData Exemplo quando o player pegar na agencia setElementData(localPlayer,"Emprego","Minerador") ja na função do emprego function ... if getElementData(localPlayer,"Emprego") == "Minerador" then -- codigo
  21. Acho que não, oque voce deveria fazer é setar a arma padrao, exemplo : M4 como invisivel com um txd e um dff e replace o objeto com a arma que tu quer e com o bone_attach , attach essa arma pra mao do personagem Como é feito nas gamemodes dayz recentes.
×
×
  • Create New...