12.04.2011, 03:00
What's this?
This is Los Santos Turf War! (LS:TW) and it was created and distributed by Skylar Paul. This game mode was created in one week and features dynamic pickups, classes, map icons, vehicles, and 3D Text Labels. This game mode was based off of [L3th4l]'s Blank Gamemode | Dynamic | Uses djson which is where the dynamic systems (minus the classes), and dialog login and registration systems come from. Now that credit has been given where credit is due, let's get started - Shall we?
Why are you releasing this?
To be honest, I have no actual use for this game mode and I would rather see someone download it and edit it to their needs and be happy with it, than it just sit on my hard drive not being played and enjoyed like it was meant to do. This game mode has been running on a server hosted by a friend of mine, but it hasn't really attracted many players due to lack of advertisement, and lack of a player-base being established. Hopefully one of you forum users have more luck than me in creating communities.
How does the clan system work?
In LS:TW, there are four classes that come pre-loaded with the game mode, which are the Los Santos Vagos, Grove Street, Ballas, and [ThC]. The Los Santos Vagos, Grove Street, and the Ballas are all classic gangs, and feature nothing new - But the [ThC] class is a clan tag based class which means if you have the clan-tag [ThC] - You are allowed to pick that class, but it is limited as you need to set their filename in order for them to have the clan-tag.
This piece of code limits the clan-tags:
You can easily add another clan-tag check by adding the following UNDER that piece of code by doing:
How does the dynamic class system work?
I think it'd be a good idea to get started on the actual class system and how it works, although it's pretty self-explanatory, some people still may not get it; therefore, I am going to explain it step-by-step.
Editing the class-name:
It's quite easy, just edit the name inside of the quotes, and that will be the class name, which will automatically show up on your next compile, and restart!
Editing the class-color:
Just take your favorite hex-color, and place it next to "TEAM_1_COLOR" and it will be your class color from your next compile & restart, on!
Editing the class-spawn:
Go in-game, go to the position you would like to spawn, type /save, go into your San Andreas folder, grab your position, and replace the X, Y, and Z coordinates above, and you should spawn there from your next compile!
Editing the class-skins:
Just go to a website such as the SA:MP wiki, grab your favorite skin IDs, and replace the numbers above -- Each class is required to have 3 skins each.. Although this is modifiable under OnGameModeInit.
This is Los Santos Turf War! (LS:TW) and it was created and distributed by Skylar Paul. This game mode was created in one week and features dynamic pickups, classes, map icons, vehicles, and 3D Text Labels. This game mode was based off of [L3th4l]'s Blank Gamemode | Dynamic | Uses djson which is where the dynamic systems (minus the classes), and dialog login and registration systems come from. Now that credit has been given where credit is due, let's get started - Shall we?
Why are you releasing this?
To be honest, I have no actual use for this game mode and I would rather see someone download it and edit it to their needs and be happy with it, than it just sit on my hard drive not being played and enjoyed like it was meant to do. This game mode has been running on a server hosted by a friend of mine, but it hasn't really attracted many players due to lack of advertisement, and lack of a player-base being established. Hopefully one of you forum users have more luck than me in creating communities.
How does the clan system work?
In LS:TW, there are four classes that come pre-loaded with the game mode, which are the Los Santos Vagos, Grove Street, Ballas, and [ThC]. The Los Santos Vagos, Grove Street, and the Ballas are all classic gangs, and feature nothing new - But the [ThC] class is a clan tag based class which means if you have the clan-tag [ThC] - You are allowed to pick that class, but it is limited as you need to set their filename in order for them to have the clan-tag.
This piece of code limits the clan-tags:
pawn Код:
if(strfind(name, "[ThC]", true) == 0) { //ThC clan-check
SendClientMessage(playerid, red, "[ERROR] You are not apart of [ThC]; Please remove the clan-tag and relog!");
Kick(playerid);
return 1;
}
pawn Код:
else if(strfind(name, "[YourClanTag]", true) == 0) {
SendClientMessage(playerid, red, "[ERROR] You are not apart of [YourClanTag]; Please remove the clan-tag and relog!");
Kick(playerid);
return 1;
}
I think it'd be a good idea to get started on the actual class system and how it works, although it's pretty self-explanatory, some people still may not get it; therefore, I am going to explain it step-by-step.
Editing the class-name:
pawn Код:
#define TEAM_1 "Los Santos Vagos"
Editing the class-color:
pawn Код:
#define TEAM_1_COLOR 0xF5EF0AFF //Yellow
Editing the class-spawn:
pawn Код:
#define TEAM_1_SPAWNX 1381.3264
#define TEAM_1_SPAWNY -1756.7399
#define TEAM_1_SPAWNZ 13.5469
#define TEAM_1_ANGLE 268.5518
Editing the class-skins:
pawn Код:
#define TEAM_1_SKIN_1 108
#define TEAM_1_SKIN_2 109
#define TEAM_1_SKIN_3 110
What are the commands?
Download time!
Check the attachments! (Mirrors are accepted and appreciated - Thank you!)
Any questions/concerns/comments?
Feel free to post below! Enjoy
Quote:
Originally Posted by Skylar Paul
The script comes pre-loaded with ZCMD, sscanf, and djSon. Listed below are a list of all the available commands, but feel free to add/suggest more, and they may be added in the next version!
NORMAL USERS: /stats, /statdisplay, /sethit, /heal, /enter, /exit Forum Moderator (LEVEL 1): /setstat, /adminduty, /goto, /sethp, /setar, /rscan Server Moderator (LEVEL 2): /spawnvehicle Server Administrator (LEVEL 3): /addpickup, /add3dlabel, /addicon, /savevehicle, /givegun Developer (LEVEL 5): /setstat ("admin" params) |
Check the attachments! (Mirrors are accepted and appreciated - Thank you!)
Any questions/concerns/comments?
Feel free to post below! Enjoy