Jump to content

AGENT_STEELMEAT

Members
  • Posts

    551
  • Joined

  • Last visited

Everything posted by AGENT_STEELMEAT

  1. Hax and fairy unicorn farts.
  2. --First, you need to properly format your table. stopTable = { {1812.65198, -1889.86047, 13.41406}, {1825.22791, -1635.03711, 13.38281}, {1855.01685, -1430.47449, 13.39063}, {1732.81580, -1296.87122, 13.44294}, {1473.19226, -1295.77124, 13.48315}, {1443.60376, -1498.26660, 13.37650}, {1426.37280, -1716.12439, 13.38281}, {1315.06909, -1656.43799, 13.38281}, {1359.06250, -1432.39734, 13.38281}, {1169.82983, -1392.34473, 13.41728}, {930.76508, -1392.92627, 13.26561}, {815.24756, -1317.91345, 13.44460}, {585.04199, -1320.53748, 13.40609}, {526.99365, -1624.20361, 16.63225} } --Create the first marker. I am assuming this is a clientside bus mission? function startBusMission() local stopMarker = createMarker(unpack(stopTable[1])) setElementData(stopMarker, "stopID", 1, false) addEventHandler("onClientMarkerHit", stopMarker, stopMarkerHit) end --Then, each time a marker is hit, create the next one (or, end the mission if the last one has been hit). function stopMarkerHit(hitPlayer, matchingDimension) if hitPlayer ~= localPlayer or not matchingDimension then return false end local stopID = getElementData(source, "stopID") if stopID == #stopTable then outputChatBox("* Mission complete!", 0, 255, 0) else local nextID = stopID + 1 outputChatBox("* Stop "..stopID.." of "..#stopTable.." complete!", 0, 255, 0) local nextMarker = createMarker(unpack(stopTable[nextID])) setElementData(nextMarker, "stopID", nextID, false) addEventHandler("onClientMarkerHit", nextMarker, stopMarkerHit) end destroyElement(source) end
  3. You bought a stolen script that was already leaked publicly. Congrats! Hey, maybe you'll get lucky and uncover some of the secret backdoors in the script before anyone else does!
  4. Your using an outdated, stolen resource. Therefore, you deserve no help at all. -.-
  5. Here is a version that just mutes the horn for 60 seconds. -- -- CLIENTSIDE -- local lastHornState, lastHornStateChange, hornViolations, isHornMuted = getControlState("horn"), 0, 0, false -- This function processes the horn antispam for the local player local function processHornAntispam() if not isPedInVehicle(localPlayer) then return end -- If the horn is muted, manually set the control state of the horn to false. if isHornMuted then setControlState("horn", false) if getTickCount() - lastHornStateChange >= 60000 then isHornMuted = false end return end if getControlState("horn") then if not lastHornState then -- If the horn has been pressed within the last 300 ms, increment the counter. if getTickCount() - lastHornStateChange <= 300 then hornViolations = hornViolations + 0.5 end lastHornState = true lastHornStateChange = getTickCount() else -- If the player has hit the horn for more than 4 seconds, increment the counter. if getTickCount() - lastHornStateChange >= 4000 then hornViolations = hornViolations + 1 lastHornStateChange = getTickCount() end end else if lastHornState then lastHornState = false lastHornStateChange = getTickCount() else -- If the player has been good for the last 10 seconds, decrement the counter if getTickCount() - lastHornStateChange >= 10000 then hornViolations = hornViolations - 1 lastHornStateChange = getTickCount() end end end -- If the player has 4 violations, mute the horn. if hornViolations >= 4 then isHornMuted = true end end addEventHandler("onClientRender", root, processHornAntispam)
  6. Here is a small script I made for this awhile ago. It detects both if a player has been holding the horn for a long time and tapping the horn a bunch. It will kick the player if they abuse the horn to a certain extent - but will forgive the player little by little over time. -- -- CLIENTSIDE -- local lastHornState, lastHornStateChange, hornViolations = getControlState("horn"), 0, 0 -- This function processes the horn antispam for the local player local function processHornAntispam() if not isPedInVehicle(localPlayer) then return end if getControlState("horn") then if not lastHornState then -- If the horn has been pressed within the last 300 ms, increment the counter. if getTickCount() - lastHornStateChange <= 300 then hornViolations = hornViolations + 0.5 end lastHornState = true lastHornStateChange = getTickCount() else -- If the player has hit the horn for more than 4 seconds, increment the counter. if getTickCount() - lastHornStateChange >= 4000 then hornViolations = hornViolations + 1 lastHornStateChange = getTickCount() end end else if lastHornState then lastHornState = false lastHornStateChange = getTickCount() else -- If the player has been good for the last 10 seconds, decrement the counter if getTickCount() - lastHornStateChange >= 10000 then hornViolations = hornViolations - 1 lastHornStateChange = getTickCount() end end end -- If the player has 4 violations, kick them. if hornViolations >= 4 then hornViolations = 0 -- Reset counter to zero, so the kick event is not triggered every render (in case the server fails to kick the client). triggerServerEvent("clientHornAntispamTriggered", localPlayer) end end addEventHandler("onClientRender", root, processHornAntispam) -- -- SERVERSIDE -- local function onHornAntispamTriggered() if source ~= client then return end kickPlayer(source, "Please refrain from spamming the horn!") end addEvent("clientHornAntispamTriggered", true) addEventHandler("clientHornAntispamTriggered", root, onHornAntispamTriggered) Sorry to spoil this Wafamde :}
  7. If your looking for an more active GTA III multiplayer mod, you should check out Liberty Unleashed. While MTA 0.5 is nice for the memories, it just isn't that great as a MP alone.
  8. <John> WHAT'S GUCCI IN THE COOCHIE GURL? <Katie> HEY BABY <John> YOU GOT MAH PAPER HO? <Katie> WHAT PAPER, FOO? <John> BITCH DONT MAKE ME SLAP YOU <Katie> I DONT LIKE THE WAY YOU TREAT ME SCUMBAG * John slaps Katie <John> GET IN THE CAR WOMAN <Katie> NO IM CALLING THE COPS :< <John> F[color=normal]UC[/color]K DA POLICE <John> THUG LYFE <Katie> THIS AINT NO GHETTO <John> BITCH THIS IS MY HOOD <John> NOW GET IN THE CAR BEFORE I CUT YOU <Katie> NO, DONT HURT ME <John> GET IN THE CAR THEN <John> AND PUT THESE BIZZALZ IN YO JIZZALZ WHILE YOU AT IT <Katie> OKAY FINE
  9. It's not a C++ style, it's a basic programming paradigm. As Maccer said: this has nothing to do with C++.
  10. While that is a workaround, I would rather disable the entire window for many reasons. I might also use guiSetEnabled(window, false) on the window only to hide the title bar since it looks kinda cool anyways, not sure.
  11. I've tested it with window re-sizing and moving enabled and disabled and the issue still occurs.
  12. Work on implementing such a feature is already underway. This *might* be ready by the new year.
  13. Hey all, I was recently working on a simple login GUI, and noticed what I think is a small bug. When guiSetEnabled(window, false) is used on a gui-window element, the title bar disappears. Is this a CEGUI bug, or an intentional feature? Example:
  14. You use the command /bind [key name] [command name].
  15. No, this was mainly an emergency bugfix release. The sounds like a good idea though, we will look into it.
  16. HANDLING EDITOR v2 RC2 RELEASED! This version fixes a few issues that were preventing players from being able to use the editor. Thank you to nnnikt for reporting that bug! As always, please continue to submit bug reports here on this thread. *Click me!*
  17. Hey everyone, I've released a small re-write of ccw's ground-snow-shader. My version creates a heavier snow effect, and applies the effect for all the textures within the far clip distance. This will use more resources, but is just about worth it for the effect. The resource comes with two exported functions (setShaderEnabled and isShaderEnabled) that must be un-commented in the meta.xml for use. They are commented due to a community page bug. I would like to clarify that I did not author the bulk of the stuff in this script - I simply took something amazing that ccw made and polished it a bit by cleaning-up the client script and tweaking some stuff in the .fx files. Screenshots: Hope you all enjoy!
  18. For now, I would suggest back-porting to the last release.
  19. It seems that one way or another, your settings file has been either deleted and not created again, or it has failed to create it in the first place. I'll look into the bug ASAP. Sorry for the inconvenience.
  20. Do any errors occur? Use /debugscript 3 to check. Alternatively, use the /hedit command, and check to see if you have changed the bind in your settings.
×
×
  • Create New...