06.07.2011, 23:35
(
Последний раз редактировалось dowster; 05.11.2011 в 19:08.
)

!THIS FILTERSCRIPT IS STILL IN BETA!
Messages:
-November 5, 2011 - New downloading system
------------------------------------------------------------------------------------------------------------
[ame]http://www.youtube.com/watch?v=AYiFMGYDX_c[/ame]
This is a FilterScript I decided to make from taking my palyer management and vehicle management from my game mode that i have been creating. This has been made entirely by myself with the SSCANF2 plugin, Y_ini, and ZCMD.
Features
-Admin System for Admin Commands
-This system supports for commands for regular players, and admins at certain levels. To make a command an admin command add this at the very begining:
Код:
if(gPlayerData[playerid][ADMINLEVEL] < [Desired Admin Level Here] ) return 1;
-This allows vehicles to be created from within the game and automatically saved upon closing the server or FilterScript.
-Vehicle Classes
-These classes are Army, Government, FBI, Police, Dealership, Trucking, Sanitation, Public Transportation, and Player Owned.
-These are set in-game with the /set command, and it is possible for me to add more classes upon request.
-Player Position and Player Vehicle Saving When Player disconnects
-When a player disconnects a command is called to check if the player owns one or two vehicles (current limit, easily adjustable) and will save those vehicles coordinates in that players file, along with the players health, money, skin id, death count, and soon password and armor.
-When a player logs back in it will read the file and respawn the vehicles where they were when the player logged off, also in next update I will include a command for the player to save their vehicles while in-game.
-Dealerships
-Dealerships can be created on a per car basis. Meaning that you spawn a car using the /vc [Model] command and then you enter the car and do /set DEALERSHIP [Price]. Also you need to drive the car to where you want the players car to spawn when they buy the car (for example, the back of the dealership building) and then you just park the car where it will be parked in the dealership.
-House System
-Admins are able to create houses in-game, select interior, and set price all with one easy command, /chouse. The entire process is made up of easy to navigate dialogs.
-For a player to enter a house they go to the house pickup and do /door, to buy a house they go to the same pickup and do /door.
-Requirements
-For the filter script to run correctly you must remove all data from OnPlayerRequestClass from your game mode, or just delete the function completely
-Folders that need to be created prior to running this filterscript are as follows: "Players", "Vehicles", and "Houses" (all without quotes).
-SSCANF2 must also be in your server plugins folder, and in the server config file so that it will run, you can find it in this thread - https://sampforum.blast.hk/showthread.php?tid=120356
-Commands
- /sellcar - will delete the players car, doesn't really give the player money but frees up that car slot
- /vc [Model ID] - used to spawn vehicles in-game
- /dc [Vehicle ID - Optional] - this command will delete the vehicle you are in, or if you specify a vehicle id it will delete the specified vehicle
- /set [Class] - sets the vehicle's class, currently classes are GOVERNMENT, SANITATION, POLICE, FBI, ARMY, DEALERSHIP, PUBLICTRANSPORT, and TRUCKING. Classes are all capitals and if you use dealership you must do it in the format of /set DEALERSHIP [Price], also there is a /set DSPAWN for setting where the car will spawn when it is bought by a player, and a /set RESET to reset all parameters in the current car.
- /chouse - Creates a house at the current position of the admin using the command
-Limits
-This FilterScript can save up to 2000 vehicles, although it is not recommended as it will take around 3 minutes to do so, and will also make it so players won't be able to buy their own cars because 2,000 is the server limit for spawned cars.
-Bugs
-If you delete Vehicle 1 in-game, the fillterscript will set the next vehicle's filename to -6345.txt i think, to fix this just rename the file to 1.txt for now
-Comment
-Anything you like, or want added just comment and I'll see what i can do.
-Download -Note: The latest version may not always be working, The latest stable version is not currently posted.
-Latest Version: http://samp.dowster.net/?file=manage...version=latest
-List of Versions: http://samp.dowster.net/?file=management_fs