samp.directory
← Scripts e bibliotecas

BBucketIsBetter/Diverse-Roleplay-SA-MP-

A feature-filled, neat, but poorly-written SA:MP script. (I'd start by making all arrays start at index 0, and removing the use of PVars on variables that are set/retrieved often.)

Gamemode★ 14atualizado abr. de 2016MITPAWN
Abrir no GitHub

README.md

##NOTE:## -The main account login is: Test_Test Test123

-You will need the main account because this script has an in-game registration quiz, applications can be reviewed by registrars, helpers, and administrators. Applications are cached and can be reviewed regardless of whether or not the player is online.


  • Added ingame UCP.

  • Totally redone, optimized, menu-based inventory for players, houses.

  • Added /v lights as an alternative to the Fire key.

  • Wrote 'PData' library for automated saving and loading of strings, floats and integers. Requires no MySQL knowledge. Optimized edition. Unused since I'm now scripting alone.

  • Added Tagging system for factions and admins, /tag. Supports: Fonts, Font Size, Bold, Color, Pos/Angle.

  • Added Silencers and /silencer for Colt M1911s.

  • Major optimizations.

  • Business and house saving re-written, optimized to be over 3000x faster.

  • Converted /v spawn to a dialog menu instead of /v spawn (1-3).

  • Many bug fixes/typo fixes.

  • /v radio works for all vehicles now instead of just personal cars.

  • Rewrote ban system to check for IP, Username AND SA:MP's gpci, making it extremely hard to ban-evade.

  • Fixed toy system.

  • Commands /call, /sms, /contacts and /(h)angup have been added for easier interactions with phone calls.

  • Replaced reloading text with a progress bar.

  • Added RemoveInvItem(playerid,itemid,amt,slot).

  • Added the ability to change the material of house and biz objects.

  • Added progress bar to gas stations.

  • Added per-layer material resetting to object editing in houses and bizzes.

  • Added Boombox as an inventory-based item, any player over 24 TLS can get a boombox.

  • Added /lights to houses.

  • Added Furniture Rights to businesses and house.

  • Added /door.

  • Added a textdraw to the loading screen.

  • Added multiple chatlines to the chat-types that were missing it.

  • Added /togb, /ajail(shortcut to adminjail), etc.

  • Added the ability to put ciggy in ur hand, mouth, etc.

  • Added /biz setexit and /biz setcp (for setting the buy-stuff-checkpoint)

  • Added /biz bareswitch, to switch to an empty interior and build from scratch.

  • Added /carsign for cops

  • Added corpse system

  • Added shots fired warning for cops. Silenced guns and houses/bizzes excluded.

  • Added tons of utility functions.

  • Added /v corpse to take corpses out of your vehicles trunk.

  • Added /lockdoor for /door.

  • Changed the reset material and material-layer system to stream objects on reset.

  • Made it so there are 3 IC days per 1 day IRL.

  • Added /unsethduty to force helpers off-duty.

  • Now the selected material-layer you're editing is high-lighted red.

  • Made it so the "H" key runs /door.

  • Added /house lookout to see who's outside your house door, moves your camera.

  • /hack now tells the admin if the player is health-hacking so the admin doesn't have to manually check if their HP changed.

  • Added /house bank/deposit/withdraw and /biz bank/deposit/withdraw for money storage.

  • You must be near a safe to access bizz/house safe/bank.

  • Added /house plantsafe for convenience.

  • Made it so regular users can use Pay N' Spray, however they have limited uses that regenerate.

  • Made house/biz safes require a combo to open them. When unlocked anyone can access the funds/items.

  • Made /house plantsafe work with Furniture Rights.

  • Converted /house and /biz setcombo to /safe setcombo, works with both businesses and houses.

  • Added /safe [lock/unlock], when a player who doesn't own the house enters an incorrect combo it notifies the house owner.

  • Added drive-thrus that close at night.

  • Modified /house [usage] and /biz [usage] to be-able to fit all the commands.

  • Moved all RECENT and NEW Textdraws to a separate location. (better organization)

  • Added the ability to pawn cellphones and watches at the hardware store, just like in the original script. #tbt 2009.

  • Added debit/cash payment method option to stores.

  • Added cheat protection from NPC control hacks.

  • Added speed traps

  • Added /lights for house lights.

  • Added DMV and SAN News to /locations

  • Added car bombs for factions to order.

  • Added wire transferring. (w/ anti money farm)

  • Added GPDID to prevent client-dialog manipulation.

  • New, better, optimized MDC for police.

  • Added /propose, /divorce.

  • You can't despawn a vehicle when a corpse is inside.

  • Added /searchtrunk, everyone can search open trunks - but not take from them. You are notified if there is a corpse in the trunk.

  • Made it so anyone can remove a corpse from a vehicle while the trunk's opened.

  • Corpses now only cleanup if they aren't being actively used in roleplay.

  • When a corpse has been left in a car for too long it occasionally prints in purple to new players the follow: ***A foul odour can be smelt emitting from the 'VehName'

  • /factionbonus now saves and loads.

  • Added boat dealership.

  • Added boat dealership to /locations.

  • Redid the wheel-selection menu for cars, now uses textdraws.

  • Added business inventories.

  • Completely refactored and optimized how house-inventories are handled by the gamemode.

  • Cops can now drop/store non-weapon/non-ammo items.

  • Added the option to Pawn MP3 players at the hardware shop. (Cellphones and Watches can of course still be pawned.)

  • Added house rentals "/house [rentfee/rentlist/rentto/unrent]"

  • Right Mouse Button now stops your current animation as a shortcut to /stopanim.

  • /house interior is now totally bug free.

  • Completely re-wrote the registration system, it now caches applications to for any-time approval regardless of whether or not the player is online.

  • Business names and slogans, faction names too - are now properly 'escaped' to allow for apostrophes again without causing the database grief.

  • Guns no longer linger on your back when you store them in a vehicle.

  • Fixed some issues with registration and MySQL malforming data when an online-players app is accepted.

  • Fixed incorrect pricing on /createhouse

  • Changed 'Position in queue' in pending-app info to 'Applications pending'.

  • Handcuffs are now automatically removed after being arrested.

  • Fixed a bug with house and business furnishing rights.

  • /bring now works as an alternative to /gethere.

  • Drug effects last 1/3rd as long

  • Addded /abiz for developers.

  • Added a warning to /biz bareswitch.

  • Fixed a few typos.

  • Updated/improved gas-station dialog.

  • Fixed /take inv for cops - it now also only takes guns and drugs.

  • Fixed 'you're currently on route' message while braking in a vehicle while on job duty.

  • Fixed /newsspawn

  • Added bulletproof vest to ammunation.

  • Added backpacks to hide holsters.

  • Added email address support, if you set your email, you can recover your password via the Web-UCP.

  • Added /despawnnewscar and /despawnrlscar.

  • Added in-game map editor and "Mapper" rank.

  • Cops now lose their weapons when they quit their faction.

  • Fixed all deprecated lengthless strings in sscanf references.

  • Heavily improved in-game map editor. (Still some improvements to go.)

  • Added a dialog to /house sell telling you your houses value.

  • Made biz-exit markers an 'information' pick-up icon. (Works nicer with biz-CP system.) (Part of /biz setcp fix)

  • Added "Radio Los Santos" radio station, DJ'd by RLS leaders.

  • Fixed URL-based music not refreshing when entering non-personal vehicles.

  • Improved RLS' in-game DJ system. (/stream)

  • Now all passengers in a car can use /v radio. (More realistic.)

  • Added /findmapping, /map mine - to find all of a certain mapper's mapping. (and edit it)

  • Fixed 'Previous Page' in in-game UCP's Ban List.

  • Fixed '/event 0' changing the server name to a name containing the old site.

  • Fixed lingering /carsign's.

  • Added object-selector to house, business and map object editor. (Before it'd automatically pick the object highest in the array because the ModelSelection include doesn't have the callbacks to properly handle this.) I feel we've done this as efficiently as possible, with low resource usage.

  • Many miscellaneous improvements, fixes, optimizations.

  • Totally re-wrote house and business furniture saving/loading.

  • Fixed a MAJOR exploit with name-changes via the game-UCP. (Thankfully no-one found it out.)

  • Added name-change ticket support to ingame UCP's name-change system.

  • Basketball added to Ganton courts. (See /help for usage.)

  • Fixed shipments being empty or not spawning if the orderer crashes or logs off.

  • Improved basketball, you can no longer exit the court with the ball, or shoot it out of the court. If you leave the court you auto-quit the basketball game.

  • Added a 5 second delay in between dunks to prevent dunk-spam.

  • Made weather set to a default one while in interiors. (houses, interiors, businesses.)

  • Added a 1 second delay after grabbing the basketball to prevent accidental dunks.(Not noticeable when you're really trying to dunk.)

  • Increased max house and business inventory slots from 8 to 20.

  • Made inventories have the appropriate cells allocated to prevent cut-off item names.

  • Fixed a /possible/ issue where laggy players had their car's fuel reset when they despawned it.

  • Fixed a false-positive on weapon hack detection.

  • More improvements to basketball. (Specificially missed shots and accidently post-pickup shot prevention.)

  • Fixed /help--> "Basketball Help".

  • Fixed a bug in the in-game map editor where going "Back" at the material-selection menu deselects your object.

  • Added object rotation and pos editting via a input-box.

  • Fixed a bug with saving of house and biz furniture.

  • Added "Delete a Faction" feature to ACP. (Also removes both online and offline playerss from the now non-existant faction.)

  • Fixed /(o)oc for non-staff members.

  • Fixed faction-shipment items sometimes being placed into the wrong crate-ID.

  • Fixed PData resetting when you change your name. (I forgot to re-save it all after your 'new' account is created, it's not handled with normal player-data saving.)

  • Fixed a bug where removed mapping wasn't being deleted from memory in some cases.

  • Fixed an exploit where rifles were free in faction shipments.

  • Added bullet proof vests and silencers to faction shipments.

  • Fixed many small bugs with faction shipments.

  • Added vehicle iterator. (Faster for looping through active vehicles.)

  • Improved NPC system.

  • Fixed bus-driver NPCs and bus routes.

  • Made DespawnVehicle(id) to use instead of DespawnVehicle(id). (Deletes from iterator.)

  • Fixed /v sellto

  • Added /checksb as a shortcut to /checkseatbelt.

  • Re-wrote how person-vehicles are handled by the script. (Also increased max ownable-vehicles.)

  • Fixed a bug where buying a vehicle wouldn't give you the key to the new vehicle. (Caused by vehicle-system rewrite.)

  • Added "Input Position" for both house and business furniture editing.

  • Added '/house furn' and '/biz furn' to view all objects planted in the current house. (Assuming you have furniture rights there.)

  • Added /wat (wear all toys) and /rat (remove all toys) to instantly attach/detach all your accessories.

  • Changed the pickup-object for business exits.

  • Fixed beanbags causing bullet-wounds.

  • Added "Headwound" when killed with a headshot.

  • Equipped gun shows in your hand when you die to prevent MG.

  • Time spent in the hospital is no longer based on your wounds, now 30 seconds regardless.

  • Tweaked headshot system.

  • Lowered shipment time.

  • Improved toy-precision.

  • Coded dynamic SQL-based gate system. (/gatehelp)

  • Re- Removed faction warehouse, lowered shipment times.

  • Fixed a bug where storing tazers would store a gun with "NUlL" ammo.

  • Added /give carkey, /take carkey and /drop carkey. */give carkey brings up a dialog with all your cars, you can give the keys to whichever car you want. */take carkey brings up a dialog with all your cars, you can take the keys to whichever car you want. */drop carkey brings up a dialog with all your currently borrowed car-keys, you can click a key-slot for information on the vehicle, and choose to discard of the key.

  • Increased job pay by 2-3x

  • Totally recoded vehicle systems, they are now 100% dynamic. *You can own up to 3 vehicles, 4 if you're a donor, 5 if you're a monthly subscriber. *Cars now have stats like Mileage, Car Alarms, and different levels of locks.

  • There is now a 30 second delay before the cops are notified of shots fired. (Silenced M1911's don't notify cops at all, if bullets are shot outside of LS cops aren't notified - same goes for interiors.)

  • Removed 'Civilian is injured' notifications to cops, because it causes mass MG and ruins RP situations.

  • New prison interior w/ yard.

  • Changed the style of [TIP]'s in the gamemode.

  • You can now set opening and closing sounds for gates.

  • Rewrote interior system, now supports live-updates for every field. (Immensely optimized object streaming on entry = less lag-related crashing, prevents falling through the map when lagging on entry.)

  • Refactored gate system. (Optimised greatly + bugs fixed.) (The MAX_GATES variable no longer has an effect on performance, only active-gates do.)

  • Shells that aren't still "Hot" can be picked up by clickng "Y".

  • Added 100% dynamic payphone system. (/payphonehelp - shows both mapper and normal user [only 1 command] payphone commands.)

  • Fixed /houseentrance, /houseexit, /bizentrance, /bizexit not saving.

  • Improved exiting houses that are in a VW other than one.

  • Improved entering interiors that are in a VW other than one.

  • Added "Taxi Meter" and automated Taxi Payment.

  • Added SawnOff, 9mm and Uzi skill. (Admin setable/donateable.)

  • Removed incoming-shipment notification, now factons must truely investigate to catch arms/drug dealers.

  • Added /v paint for changing your car's paintjob.

  • Increased job pay once again.

  • Added /setfare for taxi drivers.

  • Added house/business iterator.

  • Added all 0.3.7 faction and non-faction skins. (Except holsterless cops, they're useless.)

  • Minor vehicle-system changes to make it feel smoother in-game.

  • Undercover ATF vehicles no longer have any distinguishing marks.

  • Dead bodies now actually appear (uses 0.3.7 actor system.)

  • Added action-tags above players heads to show what they're doing. (e.g: "(breaking into car)")

  • Converted MOST NPCs to actors.

  • Added a "materials" system and item crafting system.

  • Added 4 slot gloveboxes to all non-helmet personal vehicles.

  • LEOs can now rappel down from helicopters.

  • Toys now stick around when you namechange. (This is nicer and improves MySQL efficiency, this way old toys get deleted.)

  • Your vehicles inventory can no longer be accessed through "/(inv)entory" only through the "N" key, part of multi-vehicle spawn support.

  • Now /(wi)ndows really opens/closes the driver and passenger window.

  • Anyone can store corpses in any vehicles trunk so long as it's opened, instead of just being able to store it in your OWN trunk.

  • Players can now have MAX_SPAWNED_CARS spawned at once. (Default: 2)

  • Added /house (put/take)mats.

  • Added /give materials [id] [amount].

  • Added /weapon for what will later be holster-manipulation functions.

  • PlayerToCar() and NearestAccessCar() now find the closest car to you that matches the entered criteria instead of the first in the Vehicle pool.

  • Fixed wearable-items Z-axis being wrongly offset.

  • Slightly tweaked drug system.

  • Added "Pack Of Cigarettes" item, contains 25 cigarettes.

  • Fixed "Death Reason" always being unknown when examining corpses.

  • Renamed /searchtrunk to /search trunk to make organization nicer for future /search commands. (such as /search trailer.)

  • Added new trucking mission to obtain materials.

  • Added /v delete for donated vehicles.

  • Added "Theft Cars", stealable Linerunners for the trucking mission. (3 hidden around LS.)

  • Added a tag for crafting to prevent crafting during RP.

  • Improved how MySQL handles payphones and gates.

  • Optimised and fixed rim selection.

  • Nerfed material runs.

  • Fixed "Vehicle has already been hotwired" delay being on Theft Cars (the delay was only supposed to be for personal vehicles.)

  • Fixed many inventory-related bugs (with trunks and whatnot).

  • Optimised and improved buses.

  • Optimised vehicle modding/inventories/cheat protection/dialog menus.

  • Added /resetspawn to reset a players spawn area to 0.0,0.0,0.0.

  • Added /housefurnitureinfo, /houseeditfurniture for admins.

  • Added /fireremoveall for admins.

  • Added /bizclear, /houseclear and /vehicleclear to clear biz/house inventories for admins.

  • Added /vehiclesetspawn, /vehicledespawn for admins.

  • Added /sendto [playerid] [targetid] for admins

  • Added house garages: /garage. (Admin: /housegarage /houseremovegarage /housegarageinterior) [Garages can be customized furniture-wise like houses.]

  • Added /siren and /elm for LSPD/Government vehicles.

  • Recoded inventories (WAY faster, less R.A.M usage, easier to create quantity-based items/unique items.) [Not really any visual difference].

  • Major script optimizations (mainly switching away from PVars and optimising loops/adding iterators.)

  • Misc. improvements/changes.

  • Added divide/combine options to drugs in your inventory.

  • Improved /spec [playerid].

  • Added /accent.

  • Added CheckInvItemID(playerid, itemid) [Counts the total amount of a specific item in your inv, all stacks taken into consideration.]

  • Admins can now use 'VEHICLE_HANDBRAKE' key to cycle through players while in spectate.

  • Added fishing system.

  • Changed the automated /me's for storing/taking things to /ame's to prevent MG.

  • You no longer lose your toolkit after use.

  • Removed some unnecessary/deprecated MySQL fields.

  • Changed dynamic objects throughout in-game gate creation to player objects til the gate is complete.

  • Removed vehicles from intro textdraw.

  • Misc. bug fixes/improvements.

[December 2015 - 2016]

  • Optimized player account loading.
  • Added weapon-serials, and serial-lookup in MDC.
  • Changed how passwords are hashed, way faster and way more secure.
  • Improved how MySQL handles name changes.
  • Fixed a bug where changing your password THEN your name in the same session would cause your password to revert back to the old one.
  • Added /cw (car-whisper), now recognises masks.
  • Added /removetickets [playerid] for LSPD members rank 3 or higher.
  • Optimized inventory loading as much as it can be optimized.
  • Added additions to the 'knockout' system in he script. (When being attacked with melee weapons.)

Ler o resto no GitHub

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

BBucketIsBetter/Diverse-Roleplay-SA-MP-: Gamemode de SA-MP | samp.directory