[GameMode] HKTrucking - SA:MP 0.3x Trucking Gamemode
#1

Introduction
Today, I introduce you to my trucking game mode I had made quite a long time back. I had not published it that time but I am releasing it now. So, Have fun with my gamemode.

Features
  • Whirlpool Hashing
  • ZCMD
  • Y_INI
  • sscanf2
  • 5 Different Teams to choose from
  • Many missions
  • Registration Questions


Teams
  • Trucker
  • Busdriver
  • Taxidriver
  • Pilot
  • Boatdriver


What You Need to Do
    • Customize the registration questions
    • Customize the mission locations
    • Understand the code

How Do I customize the Mission Locations?

The enums follow this pattern -

ID,
LoadName[128],
Float:LoadX,
Float:LoadY,
Float:LoadZ,
Float:UnloadX,
Float:UnloadY,
Float:UnloadZ,
Pay

This means you need to set the LoadX, LoadY, LoadZ and UnloadX, UnloadY & UnloadZ values.

LoadX - It is the X coordinate of the location from where the mission will start
LoadY - It is the Y coordinate of the location from where the mission will start
LoadZ - It is the Z coordinate of the location from where the mission will start

UnloadX - It is the X coordinate of the location where the mission will end
UnloadY - It is the Y coordinate of the location where the mission will end
UnloadZ - It is the Z coordinate of the location where the mission will end

You need to edit these values in the script under the 'Job Stuff' region. It starts from Line No. 1288.
The code is -
pawn Код:
new MisLocations[][MisLocationsEnum] =
{
    {0, "Mission 1",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {1, "Mission 2",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {2, "Mission 3",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {3, "Mission 4",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {4, "Mission 5",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {5, "Mission 6",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {6, "Mission 7",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {7, "Mission 8",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {8, "Mission 9",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {9, "Mission 10",0.3,0.3,0.3,0.3,0.3,0.3,5000}
};
new BusLocations[][BusLocationsEnum] =
{
    {0, "Mission 1",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {1, "Mission 2",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {2, "Mission 3",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {3, "Mission 4",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {4, "Mission 5",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {5, "Mission 6",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {6, "Mission 7",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {7, "Mission 8",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {8, "Mission 9",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {9, "Mission 10",0.3,0.3,0.3,0.3,0.3,0.3,5000}
};
new TaxiLocations[][TaxiLocationsEnum] =
{
    {0, "Mission 1",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {1, "Mission 2",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {2, "Mission 3",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {3, "Mission 4",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {4, "Mission 5",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {5, "Mission 6",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {6, "Mission 7",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {7, "Mission 8",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {8, "Mission 9",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {9, "Mission 10",0.3,0.3,0.3,0.3,0.3,0.3,5000}
};
new PilotLocations[][PilotLocationsEnum] =
{
    {0, "Mission 1",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {1, "Mission 2",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {2, "Mission 3",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {3, "Mission 4",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {4, "Mission 5",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {5, "Mission 6",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {6, "Mission 7",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {7, "Mission 8",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {8, "Mission 9",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {9, "Mission 10",0.3,0.3,0.3,0.3,0.3,0.3,5000}
};
new BoatLocations[][BoatLocationsEnum] =
{
    {0, "Mission 1",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {1, "Mission 2",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {2, "Mission 3",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {3, "Mission 4",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {4, "Mission 5",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {5, "Mission 6",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {6, "Mission 7",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {7, "Mission 8",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {8, "Mission 9",0.3,0.3,0.3,0.3,0.3,0.3,5000},
    {9, "Mission 10",0.3,0.3,0.3,0.3,0.3,0.3,5000}
};
Screenshots
Registration

Rules

Teams





Ban Textdraw


Requirements
  • ZCMD
  • sscanf2
  • YSI
  • Whirlpool


Credits
SA:MP Team - Without whom, nothing would have been possible
****** - y_commands, Whirlpool, sscanf
Spookie - Pawno
[HK]Ryder[AN] - This Script


Download

Source File
Github - https://github.com/hardikk21/hktrucking/tree/master

Server Package
<removed>
Reply
#2

You should add a police team
Reply
#3

+1
seems nice.
Reply
#4

Looks great but could you add a police class than it will be ammazing
Reply
#5

I will see what I can do.

Thanks for the positive comments
Reply
#6

Awesome!
Reply
#7

Thank you.

Updated with Pics
Reply
#8

Server cfg:
Код:
echo Executing Server Config...
lanmode 0
rcon_password 4656464651
maxplayers 50
port 7777
hostname Tuntun's 0.3x Server.
gamemode0 Truck
filterscripts
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Error/Server log:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[23:17:28] filterscripts = ""  (string)
[23:17:28] 
[23:17:28] Server Plugins
[23:17:28] --------------
[23:17:28]  Loaded 0 plugins.

[23:17:28] 
[23:17:28] Ban list
[23:17:28] --------
[23:17:28]  Loaded: samp.ban
[23:17:28] 
[23:17:28] 
[23:17:28] Filterscripts
[23:17:28] ---------------
[23:17:28]   Loaded 0 filterscripts.

[23:17:28] Script[gamemodes/Truck.amx]: Run time error 19: "File or function is not found"
[23:17:28] Number of vehicle models: 0
Reply
#9

@Tuntun You need Whirlpool and sscanf plugin.. that always happen when theres a missing plugin :/


EDIT:
This
Код:
echo Executing Server Config...
lanmode 0
rcon_password 4656464651
maxplayers 50
port 7777
hostname Tuntun's 0.3x Server.
gamemode0 Truck
filterscripts
announce 0
query 1
plugins sscanf whirlpool
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Reply
#10

@Tuntun - I have mentioned the requirements

@denom - Thanks for helping him/her out
Reply
#11

Add some better stuffs and classes...But nice job
Reply
#12

i cant open that server! why? can someone fiks it and just give me rar download of all plugins and all the other files please, i wanna try the server
Reply
#13

Quote:
Originally Posted by Xtream
View Post
Add some better stuffs and classes...But nice job
Thanks. This is incomplete and I don't think I will be updating it.

Quote:
Originally Posted by SRB
View Post
i cant open that server! why? can someone fiks it and just give me rar download of all plugins and all the other files please, i wanna try the server
Added Server Package for download
Reply
#14

Nice work bro... you should add some vehicles in gamemode.
Reply
#15

Sorry for x2 posts but there is few bugs. Like: register system - After i register i can login with any password.

2: Maps,my spawns... fall into the water.

Also please add housing and vehicle system
Reply
#16

@Tuntun - I have stopped the development of this project and won't be working on it anymore. Check out the login system.
Reply
#17

Nice Tested
Reply
#18

Thank you
Reply
#19

WoW awesome gamemode i will surely try it
Reply
#20

Quote:
Originally Posted by maaz
View Post
WoW awesome gamemode i will surely try it
THank you

I am a fast reply'er eh?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)