Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] [SA:MP] [GM] The Godfather

Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Adapted directly from the Godfather thread in the SA:MP forums - all credits go to the original makers, I'm just sharing this with the community. I do NOT (look it's in bold for you, say "nice release" one more time and there will be hell to pay) take credit for this release.

Intro:

As some of you readers might have witnessed that the Godfather server is no longer running my script, as they were trying to trash me as soon a different script would be out since i wasn't active to much anymore.
Because of that i made some drastic actions, that might have been to harsh actually, but what done is done.

Now since alot of people still think i have left so much of PEN1 inside my script, you are about to witness that i've created way to many features that will silence those people once and for all.
This is not a desperate decision of the actions i have taken on the Godfather server, it's just that i'm done with scripting for SA-MP and i hope other people can enjoy of what i've created.
Also some of the people of the Godfather community might read this, and said Brando has worked with me on this script...which is not true.
Brando's only thing he has done ever in the script, was to make a simple call function, he never had his hands on the source (last 3 versions).

Before we begin with the rest of the information about the mode, first some backside information:
Just to begin with, i've never taken any credit of parts that were created by Astro (Denver) aka
Denver the creator of PEN1.
Valhalla Gaming Comunity has indeed paid me for this very script you are about to read, where they
only paid for the systems and parts that were created by me.
They received this script a few months ago, and their server owner is trying to rip me off.
Due to this fact + i'm not scripting anymore, i release this script so that everyone can use it.

Credits to Astro.
Credits to Tratulla for his 2 .ini Functions.
Credits to the Fuel System creator on SA-MP forums.
Credits to Morph for the Name Showing timer.
As i have made alot of Godfather versions, this is the last version i stopped with, and i wanted most systems to work dynamically, as you will find out.
I can point out already, that some systems look big when you take a look in the source, that's because my knowledge in this scripting grown more lately on then when i began with scripting and then used more arrays as only 1 enum for big system as you will see eventually.
Also stuff that was created in Godfather v1, might still have some stuff in there that might look like a piece of Noob code :p.
I have to warn you though, since the Godfather Server worked with a Registration script (PHP) i don't have a registration system in the mode, but i'm sure you scripters around here can make one, as it only takes 5 - 10 mins
Junkers - [Release] [SA:MP] [GM] The Godfather - RaGEZONE Forums
.

Now that's all taken care of, let's start with the mode systems & functions.

(Credits to: Antonio_Morelli, For a look on ALL commands: )

Mode information:

Static Factions:
- Police Department
- FBI/ATF Team.
- National Guard.
- Medical Department (Ambulances & Firemen).
- La Cosa Nostra.
- Yakuza.
- Mayor.
- Hitman Agency.
- CNN Studio.
- Taxi Cab Company.
- School Instructors (License system).

Tutorial:
- Will react only if you registered a new account.
- You must fill in your sex (Male / Female).
- You must fill in your birthdate (Will automaticly calculate what age you are).
- You must fill in your Origin (Based on this, you will spawn somewhere in SA).
- After all the filling in options, you will get a tutorial containing rules etc..

Leader System (Dynamic):
- Admin can appoint a player that will then Lead a Faction (of above).
- Leader can invite Civilians (With faulty check system in it).
- Leader can kick players out.
- Leader can assign Ranks to his Members.
- As soon a Leader invites a Civilian, it will check what that Civilian will become and teleports him somewhere, where the Civilian can choose a skin that comes with that Faction.

Family System (Dynamic):
- This is done by the 2 Organisation Leader (La Cosa Nostra & Yakuza).
- Both the Organisations can recruit 5 families.
- Both the Organisations can delete their own Families.
- Players can check which families are created, and who's the Leader of it.
- Players can check which players are in a family.
- Leaders of a Family can adjust anything they like (Name / MOTD / Color / Spawn).
- Leaders can Invite / Uninvite players or give them a Rank.

Turf System (Needs some tweaks..) (Dynamic):
- There are several turfs that can be given to Families by Organistaion Leaders.
- As soon a Family get's a Turf, it will become their Color (Not fully working i think as they keep being grey).

House System:
- Still in because it was so nicely created by Astro.

Business System (Looks like Astro's, but is rewritten plus different functions):
- Uses products instead of Components & Products.
- Owner name will be shown when entering the icon.
- Extortioner name will be shown when entering the icon.
- Coordinates of going in and out will be saved.
- Level requirement active aswell.
- Basicly some of the stuff that Astro had, only i reduced it and went to Products and added Extortion.

Extortion System:
- Owners of a Business can assign a player as the business's extortioner.
- Owners of a Business can also delete the extortioner of their business.
- As soon a Business earns money, and it has an extortioner it will check if the extortioner is online and will give him 10% of the earnings the Business is about to get.

Karting System (Business):
- Located at the docks, and as soon 2 players or more are in a kart, there will be a message after 15 seconds that a race will start (Message will only be send who is in a kart).
- Automatictly ends the Kart Round after 4 minutes (Just some extra security).
- Checks whoever gets 1st / 2nd / 3rd.
- Checks if more then 2 people are still racing during a Kart Round, if not, the Round will be ended.

Paintball System (Business):
- Located at San Fierro, and as soon 2 players or more are in the Painball Arena, there will be a message after 15 seconds that a fight will start (Message will only be send who is in the area).
- Automatictly ends the Paintball Round after 4 minutes and will announce the Winner.

IRC System (NO not real, just for private channels) (Dynamic):
- Admins can assign a Channel to any player, and that player will then lead that Channel.
- Leader of a channel can set the MOTD / Set a Password / Set if a a Password is needed to come in or not / Lock the Channel / Kick someone.
- As soon you try to join a Channel, it will check if you need a Password or not.
- If you join or leave, everyone in that Channel will receive a message.
- Players can check how many players are in a Channel, and who the leader is of a Channel.
- Players use /i to talk in their Channel.

Mayor System:
- Only 1 mayor, assigned by an Admin.
- Mayor can set the Tax, that will be paid by every player online at PayDay.
- Mayor can give some of the Tax away to every online Cop / FBI / National Guard automaticly (Since Cops etc... have a bad income).

Prison System (Area51):
- Cops / FBI / National Guard can "deliver" players to Fort Demorgan (Area51) and that players is in jail for 1 hour at least.
- Players can't leave the Fort (Should be adjusted perhaps for more fun).
- National Guard (they were guarding the Fort in Godfather Server) can use the Security Building and use 6 cameras for activity.

Marriage System:
- Players can marry each other and share their House & Business.
- Players can divorce each other (One of them will have no House & Business).
- Players can propose to other players.
- Players need a witness in order to Marry.
- Players marry at the church in San Fierro.

Newpaper System (Dynamic):
- A maximum of 10 papers can be created.
- The Newspaper Faction can create a title and lines as a newspaper and it will be saved automaticly.
- Paper Boys can deliver created Newspapers at the Paper Building to players.
- Paper Boys & Newspaper Faction can check if there are any Newspapers.
- Players can read a Newspaper.

Skill System:

Job System:
- Scatterd around LS and SF their are several locations where Civilians can get a job.
- The Job information and name will be shown as soon you walk into the icon.
- You can only get a job if you don't have one yet, and are not in a Family / Faction.
- As soon you accept the job, you get a Job Contract, which you have to forfill for at least 5 hours (ingame time) untill you can quit it.
- When you have a Job, you have access to several commands.
Detective: /find.
Lawyer: /free.
lady: /sex.
Drugs Dealer: /selldrugs.
Car Jacker: Jack any car & /dropcar (sell a car).
Car Mechanic: /repair /refill /duty.
Bodyguard: /guard.
Arms Dealer: /materials /sellgun.
Car Dealer: /sellcar.
Boxer: /boxstats /fight.
Paperboy: /papers /bring /deliver.

CK (Character Kill) System (Dynamic):
- There are only 10 spaces available, if full the CK can't be requested.
- Players can request a Character Kill on someone else, and must be accepted by an Admin.
- Admins can delete the CK out of the list if they don't agree.
- As soon an Admin allows a CK, the system will check if both those players are online.
- If the player kills the other player that he / she wanted to CK, that player is CK'd and can't login on that account anymore.
- If the player that is about to be CK'd, but kills the player that requested the CK, that player instead is CK'd and got pwned and has same result as above.

License System (An idea by someone on the Godfather Forum, thats why it's created this way, noy my own way):
- License Faction can RP their lessons, and eventually give one of the Licenses available (Driving / Flying / Sailing / Fishing / Weapon).
- License Faction can start a lesson (Car / Plane) with a player so he / she can enter that vehicle (Else that vehicle is locked).
- License Faction can easily stop the lesson.
- Cops / FBI / National Guard can take away players Licenses.
- Players can show their Licenses to other players.

Drinking System:
- Players can drink at several pubs and special places.
- Players can choose several things to drink.
- Drinks that contain alcohol can eventually get you drunk for a while.
- If a player is drunk, he will walk drunk every xx seconds (Can be adjusted if you like).
- If a player is drunk and drives the car will change position every xx seconds.

Boxing System:
- Players that have the Boxing job can fight against each other.
- It checks if the ring is not taken at the moment.
- If players win, they will earn Points in their Boxing Skill.
- Players can get several titles the more they fight (Can be adjusted if you like).
- Players can check how many fights they won & lost, and see who is the current champion.
- If a player beats the current champion, there will be a News Message that he's the new champion.
- As soon the champion will fight, the fight will be announced in a News Message and the waiting time for the round to begin will be 60 seconds (normally it's 20 seconds).

Service System:
- Players can call for a Taxi / Bus / Medic / Mechanic to help them out.
- System checks if the Faction that is being called, if anyone is on duty.
- Those Factions that can be called, can choose if they accept the call or not.
- As soon a call get's accepted, the accepter get's a checkpoint to the caller untill he reached that player.

Tie & Tazer System:
- Only Family Members / Leaders can use the Tie and Untie functions.
- You can only Tie someone while both the players are in a car (Just RP the player in, point a gun or something).
- If the player that's being tied is tied for 3 minutes, the rope will get lose and the player is free.
- Only Cops / FBI / National Guard can use the Tazing function.
- If a player get's tazed he will be stunned for x seconds + after effect (bit weird walking).

Taxi & Bus System:
- Check if you are in one of the 2 factions and are in a Taxi or a Bus.
- Busses can only use a static fare, that will be paid immediately when a player enters the bus.
- Bus Driver and the passenger will both get a message they paid, and how much.
- Taxi's can set a fare, that will be paid every xx seconds, since taxi's use a taxi meter in real life too.
- Fare and new fare increasing time will be shown on top of the screen.
- The total fare amount will be paid to the Taxi Driver as soon the passenger steps out.

Hit Contract System:
- Hitman Agency faction can use a portable computer to: See news / Get a contract / Assign a contract to a hitman (Rank needed) / Order a weapon package / Check the ranks of online Hitmen.
- Before a contract can be given to a Hitman, there needs to be searched for a contract (automaticly search).

Weapon Creation System:
- The Arms Dealer job can gather packages, that can later be transformed into Materials.
- With Materials Arms Dealers can create weapons, and sell them to players.

Fishing (An idea of Cops & Robbers):
- Checks if you have a fishing License or not, or you will commit a crime.
- Checks if you have caught to many fishes in to little time, since you can sell the fishes and players will do this all the time to get rich.
- Checks what Level your Fishing Skill is, based on this you can catch better fishes.
- You can see how many fishes you have caught and which.
- You can throw back your last caught fish.
- You can throw all your caught fishes away.
- You can release your last caught fish.

Cooking:
- You can cook several things, like fishes and stuff from the 24/7.
- You can see what you have cooked and how many space you have left.
- You can eat whatever you have cooked.

Ingame Mission Creating System (Dynamic):
- Works only if you are an Admin.
- Admins can easily save and load a new Mission.
- You can create text messages & Game text messages.
- You can save the coordinates where players need to go to.
- You can give a title to your Mission.
- You can give a reward to your Mission if a player succeeds to finish it.
- You can choose if the players will receive checkpoints, or not (If not then they really have to search and it's all based on RP).
- Players can only do a mission once, even if the mission get's reloaded, since the number of the mission get's saved into the players account.
- When a new Mission get's loaded, players can go to the Mission Building and start their Mission.

Premium Account System (Bonus Features for players):
- Your Interest Rate (for each PayDay payment) goes up.
- Your Gas Can (from /get fuel) will be saved into your account.
- You can block Whispers.
- You can turn your Phone on / off.
- You spawn with full health.
- You can quit a job at 1 hour played, instead of 5.
- You are able to get better house cars.
- You will receive your saved weapons on login and after using /tv.
- Every 5 PayDay's you have you'll get an extra Respect Point.
- If you use /buylevel and you have more Respect Points then the level costs, you will get them back to advance youself to the process of the next level.
- On every PayDay, you will get your normal PayCheck, plus half of it as a Bonus.


Perhaps i've forgotten a few things, but you'll see soon enough when you look in the source.
Hope you enjoy the mode as i loved playing untill i got bored of it
Junkers - [Release] [SA:MP] [GM] The Godfather - RaGEZONE Forums


Regards,
Fear. (Original creator of The Godfather)

[IMG]https://forum.ragezone.com/ima...] [URL="http://www.sendspace.com/file/mhwmfh (Only the .pwn file)
 
Last edited:
Initiate Mage
Joined
Nov 2, 2007
Messages
47
Reaction score
0
Re: [Release][GM] The Godfather

There are a lots of alternative for GodFather GameMode such as moderntopia for example.
Those alternatives offer you sometime the use of MySQL.
Moderntopia uses MySql database to store informations which is definetly really good if you plan to open a Admin Panel or Player Control Panel.
I assume this is offtopic but I think ppls should know about others gamemodes based on GF out there on teh internet.
 
Junior Spellweaver
Joined
Sep 30, 2006
Messages
116
Reaction score
0
Re: [Release][GM] The Godfather

that's a really good realse.. Thanks laz
 
Legendary Battlemage
Member
Joined
Apr 5, 2005
Messages
608
Reaction score
2
Re: [Release][GM] The Godfather

Nice release Laz, I'll test it later
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

frozen the Godfather script pawns (hint the joke) ^^

It's the script I use on my server, try it out some day
 
Initiate Mage
Joined
Apr 22, 2008
Messages
1
Reaction score
0
Re: [Release][GM] The Godfather

i am getting Error With This. Its Only the .pwn could be better if you posted .amx and .pwn

i get this error:

C:\Documents and Settings\Benjamin\Skrivebord\Server Benja\gamemode\gf.pwn(19) : fatal error 100: cannot read from file: "utils"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

i rly dont kno what the problem is -.-''

i have unpakked my files the scriptfiles and that lay thim on my server

trying to make gf.pwn to gf.amx too

Error -.-''

Any Can Help?

1 Error.
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

You have to place the includes, the scriptfiles and the gamemode in their respective files.
 
Initiate Mage
Joined
Oct 16, 2004
Messages
38
Reaction score
0
Re: [Release][GM] The Godfather

it doesnt even open..

i think it needs gf.amx lol
 
Initiate Mage
Joined
Mar 26, 2008
Messages
11
Reaction score
0
Re: [Release][GM] The Godfather

Can you send me amx?
 
Initiate Mage
Joined
May 26, 2005
Messages
66
Reaction score
2
Re: [Release][GM] The Godfather

if im admin what command i use to learn to drive ? i coudn`t find it :) by the way now this mode works laz low ... very nice
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

Can you send me amx?

To create the .amx file, open the .pwn file by double clicking and it will open in the PAWNO compiler. Click the "Build" button (a blue triangle pointing to the right) and it will create the .amx file.

if im admin what command i use to learn to drive ? i coudn`t find it :) by the way now this mode works laz low ... very nice

Firstly, make yourself an admin by going into the scriptfiles folder and finding your player's name (e.g. you register under "aesirus", the file name "aesirus" (without the quotes) will be in this folder) and open up the .txt file. Now search for the like admin = 0 and change it to admin = 1337 or 1338 (1337 is the max admin level, gives you all the commands. Level 1338 simply hides you from the /admins list). Then once in-game, do /makeleader <your id> 10 (try and find the License Faction leader ID) and then do /setteam <your id> 10 (or whatever the License Faction number is) and then do /givelicense Driver's <your id>
 
Junior Spellweaver
Joined
Apr 29, 2005
Messages
123
Reaction score
2
Re: [Release][GM] The Godfather

"/me giggles"
Have fun with this topic Laz-Low xD
I would say this Game mode deserves its own support forum to help keep it organized.
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

Rofl na, a thread is fine :p

I see what you're saying, but it's simple to explain some problems when you're good with teh script ^_^
 
Initiate Mage
Joined
Oct 16, 2004
Messages
38
Reaction score
0
Re: [Release][GM] The Godfather

evrytime i compile it give me this error

"D:\GTA\the godfather\gamemode\gf.pwn(19) : fatal error 100: cannot read from file: "utils"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error."

need help here laz low

tnx
 
Initiate Mage
Joined
Jul 3, 2007
Messages
41
Reaction score
0
Re: [Release][GM] The Godfather

Thank's for this, can someone upload a list of commands =)
thank's again!
 
Initiate Mage
Joined
Apr 23, 2008
Messages
3
Reaction score
0
Re: [Release][GM] The Godfather

I have a problem.. I got my server up and running but when i got to edit my player and make me the admin (AdminLevel=1337) Then i go to play and enter my password it said wrong password when it is the rite password... How do i fix this?
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

evrytime i compile it give me this error

"D:\GTA\the godfather\gamemode\gf.pwn(19) : fatal error 100: cannot read from file: "utils"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error."

need help here laz low

tnx

With the download comes 3 files: the gamemode, the includes and the scriptfiles. In the folder gamemode, drag that .pwn file into the SA:MP folder named gamemodes, and in the includes file, open it up and then open up the scriptfiles folder in the SA:MP folders. Drag the includes into a folder titled includes (in the SA:MP folder) and then open up the scriptfiles folder, and drag the scriptfiles into the scriptfiles folder (which should already be open). You get this error because you haven't added the includes.

Thank's for this, can someone upload a list of commands =)
thank's again!

No prob, there should be a list of commands on the first post. If not, do /help ingame or /ah for admin commands

I have a problem.. I got my server up and running but when i got to edit my player and make me the admin (AdminLevel=1337) Then i go to play and enter my password it said wrong password when it is the rite password... How do i fix this?

You may have changed the wrong field or messed up the .txt file a bit.
 
Initiate Mage
Joined
Apr 23, 2008
Messages
2
Reaction score
0
Re: [Release][GM] The Godfather

How do I find out the faction numbers? Also, I would like to get rid of that, and have everybody start out with all licenses except flying, how can I do that?

Works great by the way!
 
Evil Scottish Overlord
Legend
Joined
May 18, 2007
Messages
5,843
Reaction score
5,253
Re: [Release][GM] The Godfather

I'm not fantastic with the PAWN coding, best ask the section mod frozenrat about that ^_^

To find out the faction numbers, I'd do CTRL + F and search for "//National Guard" (without the quotes). This will take you to the script to define Faction 3, the National Guard. From Factions 1-10 it will be listed in the code
 
Back
Top