Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] TaggingSystem
[SSGM 4.0 Plugin] TaggingSystem [message #476523] Sat, 27 October 2012 07:33
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
This is a very simple tagging plugin that I made for the map/mod test server that I use.

It seems to do what I want it to but if there is something wrong with the code I'm sure someone will let me know. keep in mind I know very little of making ssgm plugins.

How it works:

Basically it keeps track of scores over a period of a month and tags a player based on the scores they have accumulated; the tags are updated when a player joins or when a new level loads.

The scores and current month are stored in a file in the server folder called scores.txt; this file gets created if it does not exist.

At the beginning of a new month all data gets deleted.

The scores (which cause the tag updates), and the tag titles are read from the ssgm.ini file so that they can easily be changed.

The source code:

Stack.h
I created a custom stack class because I had trouble working with the engine_vector.
Toggle Code


TaggingSystem.h
Toggle Code


TaggingSystem.cpp
Toggle Code


This goes in the ssgm.ini
Toggle Code


All the files are included in the *.rar

[Updated on: Tue, 30 October 2012 10:13]

Report message to a moderator

Previous Topic: [CODE] How to get the current SFPS
Next Topic: [SSGM 4.0 Plugin] Win By Kills
Goto Forum:
  


Current Time: Fri May 17 23:06:17 MST 2024

Total time taken to generate the page: 0.00524 seconds