21.05.2012, 22:50
(
Последний раз редактировалось 2KY; 23.05.2012 в 02:18.
)
Introduction
Comments are welcome; enjoy!
I suppose it's time for me to release this project, due to the fact that it's starting to bore me, like the majority of projects I start, they draw on for much too long. This was something I started with the intention of making something new, using all the math functions, and creating something genuinely fun; that being said, I don't have the ideas, nor the will power to continue it much further.Features
While I will admit, it's not the most advanced gamemode, I feel as if I have written it efficiently, and it could teach something to someone, so here goes nothing.
- An organized gamemode with a (well) documented commented section at the top of the script
- Split into multiple files (includes) for more organization. [ Increases compile-time SLIGHTLY ]
- Uses the YSI library; y_commands, y_ini, and sscanf2.5 (Not sure if that's technically in the YSI library, but I'll throw that in there anyways)
- Hashed passwords for a secure gaming experience
- Personal colour system using the SA:MP colour format (0xFFFFFFFF)
- The start of an Administrator system, I will possibly update this in the future
- Saving basic statistics (HP, AR, Position)
- Level system with experience (and a textdraw to go with it!)
- A personal vehicle system; I haven't added anywhere you can purchase them yet - perhaps in a future update?
- Makes use of the 0.3e OnPlayerClickTextDraw function
- Easy functions to help even the most basic of scripters to continue the gamemode
- Built-in help system in the statistics menu (Disable this by commenting CLICK_AND_DESCRIBE)
I will more than likely be updating this mode, so if you have any suggestions, or find any bugs, please feel free to reply in this thread, and I will do my best to fix or add them; and if I don't add them, I will give you an idea of how to go about doing it so you can add it yourself. This gamemode comes with full 2KY support. (Sounds professional, why the hell not?)Pictures
(Click the pictures for a full-sized picture)Ideas in the Planning
Download
I will only be offering a full server package with this gamemode to ensure that everything is loaded and added correctly and to avoid further questions about the setup of the gamemode.Version Log
Sendspace (Full package)
Version 1.0.0 (Released: 5/21/2012)Examples* First release - Awaiting comments for the updating processVersion 1.0.1 (Coming soon!)* Added a basic Skill Points system, still far from done.
* Added Administrator commands to make administering the server a breeze.
* The spawn point has been edited (Easily editable in Floats.inc) to Montgomery.
* I've started working on the Strength System; fists are fully operational so far. It's a combination of luck, and skill.
* Interior and Virtual World now save to your user file, and are remembered for when your position is restored.
* Added some little hints to help ease the newbie learning curve of the gamemode.
* /stats refined, and more explainations added for newly added skills.
How to give the player experience:
pawn Код:
CMD:expup( playerid, params[] )
{
accInfo [ playerid ] [ Experience ] ++;
if( accInfo [ playerid ] [ Experience ] >= MAX_LEVEL_STAGES )
{
// They have gained enough experience to level up!
// If you happen to increase the maximum level stages, you need to modify the textdraws aswell.
LevelUp ( playerid, accInfo [ playerid ] [ Level ] );
// We pass their account variable through the LevelUp function so we can send them a message
// of their old level aswell!
}
UpdateXPMeter ( playerid ); // Make sure to update their XP meter manually every time you add experience!
return true;
}
Comments are welcome; enjoy!