[GameMode] Blueberry Roleplay - Made from scratch, clean base [4k+ lines + abandoned proj.]
#1

if you want a good script, use this release: https://sampforum.blast.hk/showthread.php?tid=526143; which is a NEW and better script released by me

This is a server I ended up making while learning y_ini. It's nothing spectacular, only notable things is that it's made from scratch and is pretty clean. I won't recommend trying to run it on a +50 playerbase because I didn't really think about efficiency when making this, the sole purpose of this was to get my head around how things worked and to try and fix any bugs I came across so I could rely on this for the future. Everything was made from 0 by me. Functions I used that weren't written by me have the original author's name commented next to it. Feel free to contribute and rerelease this, but please don't claim it as your own. If the download link is down, tell me and I'll re-upload it to a mirror. (Mirrors are also welcome, by the way). NOTE: This isn't for beginners. It requires atleast a bit of scripting knowledge to finish and is NOT plug and play.

Include (and plugin) libraries you'll need:
- sscanf2 (Y_Less: https://sampforum.blast.hk/showthread.php?tid=120356)
- y_ini (Y_Less: https://sampforum.blast.hk/showthread.php?tid=175565)
- zcmd (Zeex: https://sampforum.blast.hk/showthread.php?tid=91354)
- streamer (Incognito: https://sampforum.blast.hk/showthread.php?tid=102865)

Screenshot of /ahelp, /help and /stats: https://hostr.co/file/TeNwZhUy0tJw/sa-mp-291.png

Things to keep in mind
- There is no skin changing in the game but it's easily addable. The business is there though.
- I didn't use Update3DTextLabel, consider if unefficient but I simply forgot about the function.
- There's no assistant system, nor phone system. Both are easily addable though. (See my tut).
- There are two filterscripts; mapping and weapons. Mapping is a necessity for everything to work (it has all interiors and mappings), and weapons was a W.I.P. of the weapons system.
- There are about 52 houses and 11 businesses around Blueberry. All are set to realistic interiors and are working.
- This script isn't anything special at all. It has it's efficient and unefficient features. If you want to criticise my way of coding or give me advice, please PM me instead of replying here.
- There are fuel textdraws, but there is actually no fuel system. You'll need to make that yourself.
- There's no RP name checker and Kick and Ban don't support KickWithMessage, you'll need to make that yourself.
- Newly created houses/businesses aren't accessable. You need to GMX before you can actually use them.

Download: https://hostr.co/veZNYcLgYanw

Quote:
General Features:
  • Using Y_INI include for saving
  • Skin saving (gender related skins)
  • Weapon saving (slot 2, 3, 4, 5 & 6)
  • Armor, health and last position saving
  • Interior/virtual world saving (last pos sys)
  • Last login date (DD/MM/YY; HH/MM/SS)
  • KM/H and fuel system (for vehicle system)
  • Custom mapping system (gate/streaming sys)
  • Custom /pass system for prebuilt properties
  • Admin system (25+ commands; 3 levels)
  • Interpolating cameras on login/register dialog
  • 0.3c+ login (no spawn button, STYLE_PASSWORD)
  • Death System (if player = less t/ 21 hp, apply anim)
  • Local chat + (/me, /mes, /do, /low, /b, /o, /s, /pm)
  • Custom "this command doesnt exist" message
  • Admin message for people who are brought into death mode
  • /revive command for admins, reviving players who are in DM
  • /buy command (ability to purchase Medikits and Masks)
  • Leveling (+450 every 30 min and 1 xp)
  • Necessary XP is multiplied by 2 every time a player levels.
  • No player markers, and white color is set on spawn
  • Random phone number on spawn
Dynamic Faction System
  • Faction restricted vehicles
  • /f(chat); faction chat
  • /fnochat; disables chat
  • /fsettier; set tier
  • /fsetrank; set rank
  • /fcartow; tow f cars
  • /finvite; invite a player
  • /funinvite; uninvite a player
  • [ADMIN]: /makeleader; sets a player in a faction
Dynamic House System
  • /housebuy; buys nearest house
  • /housesell; sells your house (if you're near)
  • /housenear; shows you what house you're near
  • /houselock; locks your house (if you're near)
  • /houselocate; Adds a CP on your map leading to a house
  • [ADMIN]: /housecreate; creates a house at your pos
  • [ADMIN]: /housedelete; deletes specific ID
  • [ADMIN]: /houseedit; edits a house (int + price)
  • [ADMIN]: /housegoto; teleports you to a house
Dynamic Business System
  • /bizbuy; buys nearest biz
  • /bizsell; sells your biz (if youre near)
  • /bizlock; locks your biz (if youre near)
  • /biznear; shows message w/ closest biz ID, owner & price
  • /bizfee; sets your biz's fee (if you're near)
  • /bizname; changes your biz's name (if you're near)
  • /bizlocate; adds a CP on your map leading to a biz
  • /biztillinfo; shows till amount
  • /biztdeposit; deposits money in business' till
  • /biztwithdraw; withdraws money from a till
  • [ADMIN]: /bizcreate; creates a house at your pos
  • [ADMIN]: /bizdelete; deletes a specific ID
  • [ADMIN]: /bizgoto; teleports you to a biz
  • [ADMIN]: /bizaname; names a biz (you dont need to be near)
Dynamic Vehicle System
  • /carbuy; opens car purchasing dialog
  • /bikebuy; opens bike purchasing dialog
  • /carregister; registers your vehicle (BB 4600+400(random))
  • /carlock; locks your car (if you're near it)
  • /cartow; respawns your car
  • /carpark; parks your car (if you're in it)
  • /cargive; give your car to another player
  • /carhood; opens the car's hood
  • /cartrunk; open's the car's trunk
  • /carlights; activates the car's lights
  • /carfind; adds a CP leading to your vehicle
  • /engine; starts your engine (hotkey: "Y")
  • Faction restricted vehicles
  • List of ALL vehicles and prices: http://pastebin.com/577u1xja
  • Dynamicly updating speedo with engine textdraws
[JOB] Fishing System
  • /fish; fishes at specific pos (random fish and lbs)
  • /rentrod; rents a rod (attached fishing rod) for $500
  • /returnrod; returns a rod and refunds $500
  • /sellfish; sells all your fish (price on lbs, *3)
  • /checkfish; shows how much lbs you have
Money System (management)
  • /pay; pay another player some money
  • /withdraw; withdraws money from your bank
  • /deposit; deposits money in your bank account
  • /transfer; transfers bank money to another money
Mask System
  • Random mask number on spawn
  • /mask; puts mask on/off
  • Hides nametag from user of mask
  • Text shows Stranger [maskid] instead of Name
  • [ADMIN]: /setmaskid; changes mask ID
THERE ARE MORE FEATURES THAN THIS, I JUST FORGOT TO UPDATE THEM ON THE FEATURES PASTEBIN. CHECK THEM OUT YOURSELF.
Reply
#2

Very nice. Keep up the good work.
Reply
#3

Good !
We doesn't have got villages RP script all days !
Reply
#4

Just tested it. First thing want to say, it can be seen that it is done from scratch and it is very nice. I think you should finish this GM, because this script would be perfect for small servers. +REP
Reply
#5

NVM lol
Reply
#6

Updated O.P. with some more info.

PD location is here: https://hostr.co/file/hCEreu3W36nB/pdloc.png
Reply
#7

Never fail to impress me,
Excellent work Mionee!
+Rep.
Reply
#8

Nice release wonder what somebody is going to do with this script ill be looking forward to it.
Reply
#9

Looks Excellent Mionee, still haven't tested it yet.
Anyways, rep+ for your work.
Reply
#10

Thanks guys. (:
Reply
#11

Really nice gamemode! Just wondering where the dealership is?
Found it!
** BUGS:
1§ The hospital doesn't load.
2§ When you enter a ambulance it says "You need to be a police officer in order to operate this vehicle!"
Reply
#12

Quote:
Originally Posted by zDigol
View Post
Really nice gamemode! Just wondering where the dealership is?
Found it!
** BUGS:
1§ The hospital doesn't load.
2§ When you enter a ambulance it says "You need to be a police officer in order to operate this vehicle!"
The hospital loads for me, you messed something up in the mapping filterscript.

Besides;

Quote:
Originally Posted by Mionee
NOTE: This isn't for beginners. It requires atleast a bit of scripting knowledge to finish and is NOT plug and play.
Reply
#13

Sorry for that, didn't notice. But when you bought a Sultan it says the same thing as it says on the ambulance..
Reply
#14

Quote:
Originally Posted by zDigol
View Post
Sorry for that, didn't notice. But when you bought a Sultan it says the same thing as it says on the ambulance..
I'm not going to fix the bugs, you are. I clearly mentioned that there'd be bugs and that this is abandoned, meaning I will not offer any support whatshowever.

The problem is under this callback:

Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
Reply
#15

Really well made GM. I know a lot of people will be glad to be able to use this, especially as a foundation for something more perhaps. Good work.
Reply
#16

Another nice script

You would never stop impressing us!

Hope to see more from you!
Reply
#17

nyc.
Reply
#18

Quote:
Originally Posted by zDigol
View Post
Really nice gamemode! Just wondering where the dealership is?
Found it!
** BUGS:
1§ The hospital doesn't load.
2§ When you enter a ambulance it says "You need to be a police officer in order to operate this vehicle!"
Probably you didn't loaded the mapping filterscript.
Reply
#19

nice gamemode will use it to practice scripting +rep
Reply
#20

someone pls upload: http://www.solidfiles.com/
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)