Jump to content

Dre-+-

Members
  • Posts

    38
  • Joined

  • Last visited

Details

  • Gang
    MM

Recent Profile Visitors

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

Dre-+-'s Achievements

Rat

Rat (9/54)

0

Reputation

  1. RESOURCE UPDATED: -Total remaking of engine -Added exports -Fixed some debug errors For see exports go to: Mta wiki page Ye, i thik its will be looks better, but drawing alot of lines can take alot of perfomance.
  2. You should attach event to some element (for example root or source, like triggerClientEvent(source, "savePlayerEq",root)), and also, how you want trigger event to player who leave from server?
  3. Dre-+-

    New hud

    If you want move this hud to top change: hudtopposition = 1 to hudtopposition = 0 in hud.lua
  4. I dont really understand how, but your code add more 4~6 fps, thanx)
  5. Thanks, mate, now its really looks more better) BTW: Do you have MTA Community profile, for i add you in creators? Yes, like Solid said. But I suffer from the "lonewolf" disease(just like any other scripter) which makes you stop working together with other people before you even started talking to them Also, did your script detect that bones were outside the screen? Always check those nil values. Ok, added in special thanks)
  6. Thanks, mate, now its really looks more better) BTW: Do you have MTA Community profile, for i add you in creators?
  7. Ok, if you have good idea)
  8. Radar is awesome! Really good job) These data are correct, but they are not stable because If a player moves, he spends more oxygen: Moving player lose oxygen for 12 sec, but not moving for ~ 20 sec.
  9. Awesome idea! Good luck with it)
  10. Dre-+-

    New hud

    he didn't make the icons. Yeah, it's modified icons from GTA 4
  11. Good job, it's very useful for RPG servers
  12. Dre-+-

    addStat()

    I hope now work) function addStat(thePlayer, theStat, theValue) local getActualPoints = getElementData(thePlayer, "Points") local getActualCash = getElementData(thePlayer, "Cash") if theStat == "Cash" then setElementData(thePlayer, "Cash", getActualCash + theValue) elseif theStat == "Points" then setElementData(thePlayer, "Points", getActualPoints + theValue) end end function onPlayerWins(player) local players = getPlayerCount() local points = players * 1.3 local pointsstat = "Points" local cash = players * 7 local cashstat = "Cash" addStat(thePlayer, pointsstat, points) addStat(thePlayer, cashstat, cash) end or easier: function addStat(thePlayer, theStat, theValue) setElementData(thePlayer, theStat, getElementData(thePlayer,theStat) + theValue) end function onPlayerWins(player) local players = getPlayerCount() local points = players * 1.3 local pointsstat = "Points" local cash = players * 7 local cashstat = "Cash" addStat(thePlayer, pointsstat, points) addStat(thePlayer, cashstat, cash) end
×
×
  • Create New...