[GameMode] Roleplay from scratch [Unfinished, No more developing from me]
#1

Roleplay from scratch

This script is not for beginners, its not finished and its not more developing
Here is some "skeleton" roleplay script I developed 2 years ago. I haven't had time, and I also started developing new one so I kinda let this script fade out on my hdd. I found it today and realized I could share it with you all. Script is not even 30% complete, but it do have some usable things. Idea was to create as much dynamic script as its possible. So you can easily create factions, business, houses, atms, banks, 24/7 stores, gas stations, speed cams, job from in game. With only few of commands. You can also set which command could be used for any faction or job you add. But unfortunately it has only 78 commands and half of them are admin commands.

.:Features:.
Creating factions and faction hqs from in game
Creating Business from in game
Creating houses from in game
Adding vehicles from in game
Adding 24/7 Stores, Banks, ATMs, Speedcams, Business from in game
Creating mapicons from in game
Adding Vehicle Stores from in game
Adding objects from in game
Defining vehicle show room for every vehicle store from in game
Defining what command can each faction or job type use
.:Examples:.
Creating faction
Command: /addfaction
How to: You have to give 2 parameters faction type and faction name,
faction type is required so you can later define what type of faction can use which command


Creating faction HQ
Command: /addfactionhq
How to: This command require five parameters Faction ID, Interior X, Interior Y, Interior Z, Interior ID
After you give all required parameters on your current position will be created entrance to factions HQ


Creating rank name
Command: /setrankname
How to: This command require three parameters Faction ID, Rank and Rank Name
It will define name of rank level in some faction.


Defining rank skin
Command: /setrankskin
How to: This command require three parameters Faction ID, Rank and Skin ID
This will define skin id for certain rank level


Creating Business
Command: /addbiz
How to: This command require six parameters Business Name, Price, Interior X, Interior Y, Interior Z and Interior ID.
After creating business, server will create business that is buy able on your current position.


Creating House
Command: /createhouse
How to: After you type this command you will proceed to dialog's that will explain to you what to do.
After that boy able house entrance will be created on your current position.


Creating Job
Command: /addjob
How to: This command require two parameters Type and Name.
Type works same as for factions, with that you can later define what job can use which command.


Adding usable commands for jobs and factions
Command: /setcommand
How to: This command require three parameters Rank, Type and Command text.
This will add command to white list for jobs and factions with given type, if it is faction command it will look for rank too.

Here is list of commands:
Code:
/add247store 
/addatm 
/addbank 
/addbiz [Business_Name] [Price] [Interior_X] [Interior_Y] [Interior_Z] [Interior]
/addfaction [Type] [Name]
/addfactionhq [Faction_ID] [Inside_X] [Inside_Y] [Inside_Z] [Interior]
/addgasstation 
/addjob [Type] [Name]
/addobject objectid
/addspeedcam [Max Speed]
/addvehicle [model] [color_1] [color_2] [faction] [faction_rank]
/addvehicleshop 
/admins 
/aduty 
/b [Text]
/balance 
/business [buy/sell/fee/lock]
/createhouse 
/createmapicon [Icon]
/credits 
/cuff [PlayerID]
/deposit 
/detain 
/do [Action]
/drag [PlayerID]
/engine or /e
/enter 
/exit 
/f [Text]
/factions 
/fill 
/fixcar 
/gethere [playerid]
/giveadmin [PlayerID] [Level]
/goto [player/car/house/biz/faction/job/gasstaion/247store/bank] [id]
/handsup 
/heal [playerid]
/house [key/lock,buy,sell,store]
/houses 
/job 
/lights 
/load247 
/loadatms 
/loadbanks 
/loadbusiness 
/loadcommands [Type]
/loadfactions 
/loadgasstations 
/loadhouses 
/loadjobs 
/loadspeedcams 
/loadvehicles 
/loadvehicleshop 
/loadvehiclespawns 
/me [Text]
/mycars 
/o 
/pay [PlayerID] [Amount]
/s [Text]
/setcommand [Rank] [Type] [Command]
/setrankname [FactionID] [Rank] [Rank_Name]
/setrankskin [Faction_ID] [Rank] [Skin]
/setvehiclespawn [Vehicle ShopID]
/stopdrag 
/takeout 
/taze [PlayerID]
/togphone 
/transfer [PlayerID] [Amount]
/v [get/park/lock/save/paint/buy/sell/accept]
/vehicleshops 
/vehid 
/w [PlayerID] [Text]
/withdraw [Amount]
/writepos 
To get it all work you'll need to create following directories in scriptfiles folder:
• Commands
• Factions
• house_store
• Players

.:Credits:.
Me - scripting
DracoBlue - Dini Include


Click here to download
Reply
#2

great work! + rep
Reply
#3

Looks good, might try it out later!
Reply
#4

How can I install this pleasE?
Reply
#5

just copy this code from pastebin to pawno compile and in server.cfg set mode you want to use but You'll need to create folders Commands,Factions, house_store and Players inside scriptfiles folder.
Reply
#6

Hey, this sounds good. Well done!

Shame you stopped.
Reply
#7

Quote:
Originally Posted by CoaPsyFactor
View Post
DracoBlue - Dini Include
I don't even need to read the rest. It's a mystery to me why all of you are clinging to old and obsolete methods. Not to mention strtok.
Reply
#8

Good effort man
Reply
#9

Quote:
Originally Posted by Vince
View Post
I don't even need to read the rest. It's a mystery to me why all of you are clinging to old and obsolete methods. Not to mention strtok.
That's the reason I stop developing that script. I haven't script that for idk, one and a half year...
Reply
#10

almost none of the cmds work....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)