Jump to content

Gravestone

Members
  • Posts

    467
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gravestone

  1. You are trying to restart a resource from the console?
  2. Ever session, your IPv4 changes. Open CMD type "ipconfig" and press enter. Look for some line called 'IPv4 Address...' and write that IP instead of 192.168.1.1. NOTE* Make sure your MTA server is closed when you're forwarding ports.
  3. I can't understand. Here's the table. stats = { {77 = "0, 200, 999"}, -- Ak47 {78 = "0, 200, 999"}, -- M4 {69 = "0, 40, 999"}, -- USP. 45 {71 = "0, 200, 999"}, -- Desert Eagle {76 = "0, 250, 999"}, -- MP5 {73 = "0, 200, 999"}, -- Sawn off {72 = "0, 200, 999"}, -- Shotgun {70 = "0, 500, 999"}, -- Silenced Pistol {79 = "0, 300, 999"}, -- Sniper rifle {74 = "0, 200, 999"}, -- Spaz 12 {75 = "0, 50, 999"} -- Micro Uzi }
  4. Every stat ID has different values at which a certain level is reached. Means I should use elseif for all the stats?
  5. I was wondering if it is possible to show weapon levels (Poor, Gangster, Hitman) instead of their values. Here's the script (taken from the freeroam resource) which creates the stats window. function initStats() applyToLeaves(getGridListCache(wndStats, 'statslist'), function(leaf) leaf.value = getPedStat(g_Me, leaf.id) end) end function selectStat(leaf) setControlNumber(wndStats, 'statval', leaf.value) end function maxStat(leaf) setControlNumber(wndStats, 'statval', 1000) applyStat() end function applyStat() local leaf = getSelectedGridListLeaf(wndStats, 'statslist') if not leaf then return end local value = getControlNumber(wndStats, 'statval') if not value then return end leaf.value = value server.setPedStat(g_Me, leaf.id, value) end wndStats = { 'wnd', text = 'Stats', width = 300, x = -20, y = 0.3, controls = { { 'lst', id='statslist', width=280, height=260, columns={ {text='Stat', attr='name', width=0.6}, {text='Value', attr='value', width=0.3, enablemodify=true} }, rows={xml='stats.xml', attrs={'name', 'id'}}, onitemclick=selectStat, }, {'btn', id='Close', closeswindow=true} }, oncreate = initStats } And here's the list of the stats.
  6. Line 10: local nm = dxDrawText(name,sw*.3,sh*.85) I don't see any image path or function which should draw the image. Send us a screenshot of your debug script mode 3, that'll be helpful I guess.
  7. Yeah it's working. I posted the same comment 2 times. I was commenting and the comment wasn't appearing on the first page. I'm pretty new here so I thought the comments will continue on the same page. Sorry.
  8. Same problem. Selecting me in the team when I move myself to a team through admin panel and not selecting when I'm not in a team.
  9. Same error, selecting me in the team when I'm already in team and not selecting me when I am not in a team.
  10. Not in a team, where should I add it?
  11. It is showing the message when I first type /dd and is not selecting me in a team.
  12. Random selection is working, but I want to disable the /dd and /lord when the player is already selected in a team and show an error, "You can not change your team now!".
  13. Error at line 9, attempt to compare two table values.
  14. If the player is selected as a drug dealer, his properties will be set same as the army guy's.
  15. If the player is selected as a drug dealer, his properties will be set same as the army guy's.
  16. What about the Drug Dealers team's properties? Your code will only select the teams randomly, I want 1 by 1 selection. setPlayerTeam(player, getTeamFromName("Drug Dealers")) spawnPlayer(player, 1887.6721191406, -2473.6330566406, 13.53911781311) setCameraTarget(player, player) fadeCamera(player, true) setElementModel(player, math.random(1, 200)) giveWeapon(player, 22, 200) setPlayerNametagColor(player, 255, 0, 0) outputChatBox("#ff0000(Mission) #8e8c00Help the #fff000Drug Lord #8e8c00to deliever the drugs!", player, 255, 255, 255, true) end
  17. What about the Drug Dealers team's properties? Your code will only select the teams randomly, I want 1 by 1 selection. setPlayerTeam(player, getTeamFromName("Drug Dealers")) spawnPlayer(player, 1887.6721191406, -2473.6330566406, 13.53911781311) setCameraTarget(player, player) fadeCamera(player, true) setElementModel(player, math.random(1, 200)) giveWeapon(player, 22, 200) setPlayerNametagColor(player, 255, 0, 0) outputChatBox("#ff0000(Mission) #8e8c00Help the #fff000Drug Lord #8e8c00to deliever the drugs!", player, 255, 255, 255, true) end
×
×
  • Create New...