25.03.2013, 03:42
(
Последний раз редактировалось CJay9209; 03.11.2013 в 04:05.
)
The All-In-One RPG system!!!
DEMO SERVER HERE
Required Includes:
Lstream Include
SSCANF2 include & Plugin
Foreach Include
TSYS is the new all-in-one RPG solution for your server. It is currently in development but i decided to release it a tad early as somebody was pleading with me (YOU KNOW WHO YOU ARE U DINGBAT LOL).
Basically this system gives you the abillity to dynamically create an in game world where users can own multiple vehicles and buy businesses. Users can also store their money in banks located accross the world of SA for safe storage and then use it to purchase a house or business. Park your vehicles wherever you like and rest safe in the knowledge that your new vehicle security system will blow intruders to peices! Businesses will earn money each hour based on a daily profit margin.
Create factions with dedicated vehicles and safe-houses. Houses can even have the same interiors thanks to the abillity to specify the houses virtual world in the configuration.
The system also boasts the single most comprehensive and advanced vehicle ownership system availlable for sa-mp and the housing and business system are being designed along the same lines. DON'T MISS OUT!!!
This really is the ONLY RPG system it makes any sense to use!
********** NOW WITH BUILT IN ANTICHEAT Courtesy of MAKI187 ******************
anticheat is fairly comprehensive - I've taken the liberty of tidying up the code, fixing the few errors and fully integrating it into the tsys core system. all credit for the original code goes to the author as always.
================================================== ========
OK so now I have that out of my system i can introduce you to the new brainchild I've been hatching. This system is a very advanced all in one rpg type package. It will take some getting used to but when mastered it can do everything mentioned above and more.
The commands available so far include:
- TSYS_Register(playerid, password[]) - registers a player with tsys
- TSYS_Login(playerid, password[]) - logs the player into tsys
- TSYS_SetPassword(playerid, newpass[]) - Set's the player's tsys password
- TSYS_SetPlayerAdmin(playerid, level) - makes player a tsys admin of specified level (0 is no admin, 3 is server owner)
- TSYS_GetPlayerAdmin(playerid) - returns a player's admin level (returns 1 for yes and 0 for no)
- TSYS_SetPlayerFaction(playerid, factionid) - sets player faction (0 and up. -1 is considered no faction)
- TSYS_RemovePlayerFaction(playerid) - removes any faction affiliation player has
- TSYS_GetPlayerFaction(playerid) - returns player faction
- TSYS_IsPlayerLogged(playerid) - Checks if a player is logged in
- TSYS_IsPlayerRegistered(playerid) - Checks if a player is registered
- TSYS_SetVehicleFaction(vehicleid, factionid) - sets a vehicle faction (same rules as players apply)
- TSYS_RemoveVehicleFaction(vehicleid) - removes the vehicle's faction
- TSYS_GetVehicleFaction(vehicleid) - returns the vehicle's faction
- TSYS_CreateMapIcon(markermodel,Float: x,Float: y,Float: z,Float: spawn_distance) - creates a map icon that uses the in-built streamer (returns the iconid)
- TSYS_DestroyMapIcon(iconid) - destroys a TSYS map icon
- TSYS_ShowPlayerBankMenu(playerid);
- TSYS_ShowPlayerBusinessMenu(playerid)
- TSYS_ShowPlayerVehicleMenu(playerid) - shows the player the vehicle menu
- TSYS_ShowPlayerACMenu(playerid) - shows the player the AntiCheat Menu
==== The following commands replace standard sa-mp commands so you don't get kicked or banned by anticheat ====
- TSYS_GetPlayerMoney(playerid)
- TSYS_GivePlayerMoney(playerid, amount)
- TSYS_SetPlayerMoney(playerid, amount)
- TSYS_SetPlayerVirtualWorld(playerid, vw)
- TSYS_SetPlayerInterior(playerid, intid);
- TSYS_SetPlayerPos(playerid, Float: xx, Float:yy, Float:zz)
- TSYS_SetPlayerHealth(playerid,Float:health)
- TSYS_SetPlayerArmour(playerid,Float:armor)
Setup:
Very easy to use. Simply put the tsys.inc and TSYS folder in your "...pawno\includes\" folder and load up pawno. scroll down on the right hand side and you shoud be able to see a list of availlable commands. remember to add:
pawn Код:
#include <tsys>
VEHICLE SETUP:
1 - In order to use the initial batch add system, in the scriptfiles folder you must place a file named "tsys_files/setup_files/TSYS_vehicles_setup.txt" (demo included in the download package)
2 - The vehicles setup file should contain the co-ords/info of your vehicles to be batch added into the system in the following format:
model,x,y,z,z_angle,color1,color2
3 - each set of co-ords/info for each vehicle must start on a new line.
There are 2 other files in the scriptfiles required for the bank and fuel systems to be fully activated.
"tsys_files/core_files/TSYS_fuelstations.txt" and "tsys_files/core_files/TSYS_banks.txt". The bank file must be formatted in the following manner.
Each line is a single bank:
mapicon_x, mapicon_y, mapicon_z, banklocation_x, banklocation_y, banklocation_z, bank_name
The Fuelstations file must be formatted in the following manner. Each line is a fuel station:
location_x, location_y, location_z, type (1 = small vehicle / 2 = large vehicle)
there are demo files in the download for reference!
*** You can add your own vehicles using addstatic or createvehicle in your script but they will not be part of the vehicle ownership system at all. Vehicles can be added either via the old "batch file method" or in game by using the vehicle admin menu system. Remember to add all map icons you have using the commands provided with this include or you will have trouble. ***
I think that pretty much covers most of the basics. I'm always open to ideas so make suggestions and please comment if you download - I wanna know whats working and whats not!
================================================== ==========
Downloads
Download v1
Download v2 - ***Current***
Download v3 - ***Beta***
================================================== ==========