Jump to content

manawydan

Members
  • Posts

    980
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by manawydan

  1. https://community.multitheftauto.com/in ... ls&id=9311 local Shinra = function(p,k,ks) local x,y,z = getElementPosition(p) setPedAnimation(p,"GHANDS", "gsign2", -1, false, true, false, false) --triggerClientEvent("CreateNinjaSound",root,p,"Shinra.mp3") play sound for k,v in ipairs(getElementsByType("vehicle")) do local px11,py11,pz11 = getElementPosition(v) local pedd11 = getDistanceBetweenPoints3D(x,y,z,px11,py11,pz11) if (pedd11 <=50) then -- max distance setElementVelocity(v,2,2,2) -- change her end end end
  2. try no tested if getPlayerTeam(source) == getTeamFromName("Admin") then local theName = getPlayerName ( source ) outputChatBox( "Info: Securit Acont Server Bank balance de: "..theName.." $ " .. tostring( playersAccount[ source ].balance ), getPlayersInTeam(getTeamFromName("Admin")), 255, 255, 0 ) end
  3. how you save the level and exp from player? you have use setAccountData(onPlayerQuit), and (onPlayerLogin) use getAccountData and setElementData, to set the exp and level data to player. ps: have other ways too, and you exp e level work fine?(only error in image or in all?)?
  4. local account = getPlayerAccount(source) local S = getElementData(killer, "Level") killer no definid
  5. i see some erros(i think), yoy try get one number from one string?
  6. not bad, you can change my naruto gamemode in community, can have something useful. https://community.multitheftauto.com/in ... ls&id=9311
  7. manawydan

    doubts

    learn "logic programming"
  8. you dont get problem with it, if you put in client or server, both will have it
  9. you can check if player health no is full, here work if health max is 100. function healMedic() for key, player in ipairs(getElementsByType( "player")) do local hp = getElementHealth(player) if(hp<=99)then setElementHealth(player,hp+1) end end end setTimer(healMedic,1000,0)
  10. manawydan

    Draw bug

    change if seconds = 0 to if seconds == 0
  11. local timeToDestroyer = 2000 -- 2 segundos addEventHandler("onVehicleExplode",root, function() setTimer(destroyElement,timeToDestroyer,1,source) end)
×
×
  • Create New...