.: Played Time: Extended :.
** Info **Everyone knows Alka's Played Time plugin. It doesn't really have many features, doesn't support SQL saving, and it only shows the top motd for online players only.After seeing many requests about the motd, I decided to make a new plugin, which people will be able to switch between SQL or nvault saving. Also I added new features which are described as I continue.** New features **- Ability to switch easily between SQL and nVault to save players times. (Changed from .sma file)
- Top motd now shows all saved players. (For both SQL and nVault)
- New command amx_show_player_times.
- Added donate menu. Players will be able to donate time to each other by just a chat command.
- Added natives for sub-plugins.
- Ability to switch between colored chats or normals.
- Added connect messages. (Can be disabled by a cvar)
- Names and times are now saved by steamids.
- Name is updated on each name change.
- More features coming soon as I update the plugin.
pte_allow_donate "1" // Allow donatingpte_show_connect_messages "1" // Show messages upon connect
** Requirments ** Code: #include// 1 = SQL// 2 = nVault#define SAVETYPE 2
Just change the number to change between saving types.If your using SQL, you will need to edit host, user, user's password, and databaseJust find this in the file and change them (It should be in the first lines) PHP Code:new const gsz_SQLINFO[][] = { { "127.0.0.1" }, // HOST { "root" }, // USER { "" }, // User's password { "amxx" } // Database Name}
If you want colored messages, just uncomment this line (Also in the top of the plugin) by removing // PHP Code://#define COLORED_MESSAGES// It will be#define COLORED_MESSAGES
** Credits **Alka - Original plugin idea.Exolent[jNr] - For showing how to make a top motd with nvault_util HereBugsy - For the nvault_util include** Changelog ** Code: v0.1 | 27/11/2012 - Initial release.You can download nvault_util.inc (you will need it if you want to save times by nVault) from here: Click meOr you can download it from the attachments.** To do **- Add new natives (If it will be in handy)
- Fix some bugs (If there are any)
- Add new features
- Make Webstats (When I learn PHP )
- Make sub-plugin example on how to use natives
- Post the SoloGunner and GhostWalkers modes (MAYBE)
- Replace ColorChat include with ChatColors include (Connors version)
Wyświetl pełny artykuł