[FilterScript] Vehicle and Player Management
#1



!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;
-Vehicle Position Saving on Server Close
-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
Reply
#2

Wow, awesome work mate!
+2 rep
Reply
#3

All scripts must provide the source code.
Reply
#4

Would a CB radio function for trucks be desired? or a CB for police, army, fbi, etc.
Reply
#5

Note: The ******* video is now up
Reply
#6

Care to help? (the code below) and how do I get admin


Код:
C:\Users\Owner\Downloads\VehicleAndPlayerManagement-07-07-2011.pwn(109) : error 017: undefined symbol "GetVehicleDamageStatus"
C:\Users\Owner\Downloads\VehicleAndPlayerManagement-07-07-2011.pwn(202) : error 017: undefined symbol "UpdateVehicleDamageStatus"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#7

Quote:
Originally Posted by Darcha
Посмотреть сообщение
Care to help? (the code below) and how do I get admin


Код:
C:\Users\Owner\Downloads\VehicleAndPlayerManagement-07-07-2011.pwn(109) : error 017: undefined symbol "GetVehicleDamageStatus"
C:\Users\Owner\Downloads\VehicleAndPlayerManagement-07-07-2011.pwn(202) : error 017: undefined symbol "UpdateVehicleDamageStatus"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Hmm.. what version of the server or the pawn compiler are you using?
Reply
#8

0.3c
Reply
#9

Download the latest server, save the filterscript to the filterscripts folder, open up the pawno that comes with the download, open up the fliterscript and compile from there. i believe something may be messed up with your includes. Here's the link to the latest server http://files.sa-mp.com/samp03csvr_R2-2_win32.zip and also, use the newest version of the filterscript, the 07-11-2011 date. I am using american date system but I'll change it to match the forum.
Reply
#10

Forgot to answer your other question, to make someone admin you either have to be a level 7+ admin, be logged in as a RCON admin, or manually change the admin level in the player file.
Reply
#11

Ok Thanks for the help
Reply
#12

You will need the version i am about to post, i had forgotten the final implementations of the admin system when i had lost some of the script in a hard drive failure a few days ago. The script with the date 13-07-2011 should have the working admin system, it is untested as of now.
Reply
#13

Ok thanks it's working fine now
Reply
#14

Added a housing system, could a mod please change the thread name to "Player, Vehicle, and House System" if at all possible? thanks in advance.
Reply
#15

very nice stuff bro :P
Reply
#16

Quote:
Originally Posted by AgentZero
Посмотреть сообщение
very nice stuff bro :P
Thanks man, still some bugs but its on its way
Reply
#17

hey very cool script. Problem being when its all set up and i try to go into the game it asks me to login even though im the first one on there and theres no register button? ive put the Players, Vehicles & Houses folders in the filterscripts folder is that where there suposed to be ? i have deleted the onPlayerRequest class completly and have installed the sscanf plugin correctly because it all boots up fine on CMD. heeelllllpppp
Reply
#18

Quote:
Originally Posted by English-Conceptz
Посмотреть сообщение
hey very cool script. Problem being when its all set up and i try to go into the game it asks me to login even though im the first one on there and theres no register button? ive put the Players, Vehicles & Houses folders in the filterscripts folder is that where there suposed to be ? i have deleted the onPlayerRequest class completly and have installed the sscanf plugin correctly because it all boots up fine on CMD. heeelllllpppp
the Players, Vehicles & Houses folders should be in the scriptfiles folder
Reply
#19

ok so thats all ok. why then does it ask me to login upon starting the game, ive tried typing in my rcon password as thats the only one ive made for my SAMP server. theres also no register button as if it assumes ive already registered ? 0.o continued help much apreicated. am i missing something ?
Reply
#20

Good job, you should do some more work on vehicle buying, add more informations etc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)