AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   FFAC/Tools (Statistics,Banlist,MSNbot,ig plugin dl & install,...)[6/5/07] (https://forums.alliedmods.net/showthread.php?t=50520)

hackziner 01-28-2007 11:26

FFAC/Tools (Statistics,Banlist,MSNbot,ig plugin dl & install,...)[6/5/07]
 
11 Attachment(s)
FFAC/Tools Features !

Statisticals part

Players stats
Team stats
Server stats
Ingame stats, website
Death,kill,spawn, .. counter, rank by csstats,skill, ...
Other misc function to display stats ( like display skill on aim ! )

Tools

MSN Bot ( a player on the server can contact several admin on msn ! )
Banlist ( about 12000 cheater banned ... )
Package manager ( install plugin like amxmatchdeluxe with one command line, without ftp access, ... )
Auto update ( The plugin automaticaly download and install the lastest version ! )
Map Download ( You wan some new map on your server, there is a function to download map from ffac server to your server ! )


Code:

/*********************************************************************************************
*                        FFAC server side plugin v1.4
**********************************************************************************************
FFAChmp V1.4
hackziner : [email protected]
FFAC Website : http://82.232.102.55/FFAC


Licence : CeCILL FREE SOFTWARE LICENSE AGREEMENT, there is a copy of the licence at the end of this file.

Use :
 Only run the plugin on your server. After the first player connection the server will be added to the server list
 No subscription require !

    Features, ... :

    Global players stats  ( based on skill ) !
    FFA Team rank ( create a team with ffa player )
    Global CStats like rank ( based on Kill - Death ... )
    Servers stats ( graphs with connections by hours/day, total frag, ... )
    Show current skill,rank on a server
    Show top players of the serveur in motd
    Show your stats in motd
    Global Banlist
    Sentence log
    User can contact an admin on MSN through server/ffacmsnbot
    Map download from FFAC server
    Package Manager
    Package choice menu
    Autoupdate
    Show if an admin is online, and explain how to contact througth msn if nobody is online
    No subscription require !

More informations, support, improvements, .... :
http://ufb.free.fr or http://82.232.102.55/FFAC/forum

    Cvar:
    ffac_showinfo ( default 1 ) : Show information ingame, like player skill ... ( commands are skill,ffac,score,allskill,ffac version )
    ffac_hudinfo ( default 0 ) : Show informations ( like skill ... ) in a hud message
    ffac_showpub ( default 1 ) : Show a little pub message for ffac every 180 secs
    ffac_ffacban ( default 1 ) : Use the FFAC banned steamid database
    ffac_skill_on_aim ( default 0 ) : show player level on aim ( eg Low/Middle/High )
    ffac_ban ( default 30 ) : Duration of a FFACBan in Min
    ffac_plog ( default 1 ) : Log sentence function ( when you say something with "log" inside, the sentence is logged and you can read it on the ffac website )
    ffac_msn_contact ( default "" ) : Set the msn adress for the ffac msn bot !
    ffac_ip_bind ( default "" ) : Set your public ip ( if you server is behind someting ... )
    ffac_autoupdate ( default 1 ) : enable autoupdate
    ffac_hpt ( default 1 ) : enable the packet manager
   
    Technicals Cvar :
    ffac_packetsize ( default 1024 ) :  Size of packets
    ffac_master_server ( default "82.232.102.55" ) : FFAC master server address
   
    admin commands :
   
    amx_ffac_ban <user id or steam id> : ban a player for amx_ffac_ffacban minuts, and repport the ban to the ffac server
    amx_ffac_map_download <map> : download a map from the ffac server on your server !
    amx_ffac_map_list : show the list of downloable maps
    amx_ffac_hpt_install <package> : Install a package on your server !
    amx_ffac_hpt_remove <package> : Remove a package
    amx_ffac_hpt_menu : Show a menu with all packages available
   
    Players commands : ffac version,ffac changelog,skill,rank,topplayers,mystats,serverconnections,!log <sentence>,admin,!admin <message>,set nickname

    ffac version : display the ffac version
    ffac changelog : display ffac changelog
    serverconnections : show server connections stats in motd ( day & month )
    skill : show your skill
    /me : display your level
    admin : show number of admin online. If 0 and msn_contact set, explain the !admin command
    topplayers : show kill,deaths ... of all players in game
    mystats : show your stats ( kill, death, connections, online time, ... )
    rank : show your rank by skill and csstats ( global and server rank )
    !admin <message> : send a message to the msn contact ( on msn ^^ ) by the ffac msn bot
    !log <sentence> : Log a sentence ( you can view all your logged sentences on the ffac website )
   
   
    FFACBan :
    Ban player banned in the FFAC Database for 30 minute ! Not unlimited ban !
   
   
    Package manager syntax :
   
   
    [Version]  // Check the require amx version
    1.7
    [Download] // Download a file
    configs/hpt/remove_smallfun.hpt
    [Install] // Download and install a plugin
    plugins/spawnprotection.amxx
    spawnprotection.amxx

   
    Package :
    smallfun ( amx_ffac_hpt_install smallfun ) ( this package contains, spawnprotection, bunnyhop and lastmanbets )
    sanksound ( amx_ffac_hpt_install sanksound ) ( this package contains sanksound plugin with sounds )
    matchdeluxe ( amx_ffac_hpt_install matchdeluxe ) ( this package contains amx_match_deluxe )
    ...

    ToDo:
    -stats improvement
    -few commands like online time, etcs
    -msn to server messages
    -autoupdate for all plugins
    -trombi/annuaire
    ....
   
    Changelog:
   
    [21/4/2007] 1.4
    -allow multiple msn in msn_contact ( use  : ffac_msn_contact "[email protected];[email protected]" )
    -Extend max msn_contact size from 30 to 128 chars
    -Fix command display bug
    -Replace valve id lan or steam id lan by ip in the msn contact message
    -new natives for db_sys
    -indentation problems fix
    -multi language support
    -auto download language file if not found !
    -integration of the package manager in the amxmodmenu !
    -new say command : /me to display your level
   
   
   
    [21/4/2007] 1.3
    -amx_ffac_hpt_menu //Menu for install new plugin, autodownload the plugin list, ...
    -new comands to show server connections stats, say "serverconnections"
    -new commands to show changelog, say "ffac changelog"
    -new function to display player level on aim : set ffac_skill_on_aim 1
    -Some fix with the proxy

    [7/4/2007]    1.2
    -security fix ( package manager )
    -dynamic master server
    -new package matchdeluxe
    -now package manager and autoupdate are activate by default
    -spawn count fixed
   

*********************************************************************************************/
   

*********************************************************************************************/

The purpose of the plugin is to provided a kind of "global" ranking and admins tools on several server at the same time.

For example you go on a server A, you get a skill of 54000. You leave the server and go on an other one. Your skill will load on the other server, ...


FFAC/Tools


Statisticals part

Players stats

Description:
Players stats are available ingame and on the ffac website. FFAC provides several player stats :
  • Connection count
  • Online Time
  • Kill
  • Death
  • HS
  • HS taken
  • Spawns
  • Server rank
  • FFAC rank
  • Skill
  • Country
Commands:
  • skill (say ): show your skill
  • mystats ( say ): display your full stats in motd
  • /me ( say ) : display your level in chat (low/middle/... )
  • rank ( say ) : display your rank on the server and on all server ( by skill and csstats )
http://82.232.102.55/public/images/divers/skill.JPG



Team stats

Description:
Team stats are only available on the FFAC Website for now ( http://82.232.102.55/FFAC ). Team are ranked by skill only.

FAQ :
Join a team ?
Play on a server with the FFAC plugin, register on the FFAC website ( http://82.232.102.55/FFAC ), and go to the team list.

Server stats

Description:
FFAC provides server connections stats by hours and day. Stats are displayed on the FFAC website and in motd

Commands:
CVARS:
  • ffac_showinfo (default 1) : Show information ingame, like player skill,...
  • ffac_hudinfo (default 0) : Show informations (like skill) in hud message
  • ffac_showpub (default 1) : Show a little ads message with commands for ffac every 180 secs
http://82.232.102.55/public/images/divers/igstats.JPG
http://82.232.102.55/public/images/d...topplayers.JPG
Misc

Level on aim : display player level on aim ( "low", "middle", ... )
Sentence log : log sentences on the FFAC website
Commands:
  • ffac version ( say ) : displays FFAC version
  • ffac changelog ( say ) : displays the ffac changelog
  • admin (say ) : displays how many admin are online
  • !log <sentence> ( say ) : log a sentence on the ffac website, you can see all your logged sentences on the ffac website
CVARS:
  • ffac_plog (default 1) : Enable log sentence
  • ffac_skill_on_aim (default 0) : show player level on aim
  • ffac_ip_bind (default "") : Set your public ip ( if you server is behind something ... )


Tools

MSN Bot

Description:
This tool allows someone on your server to send a message to an admin on MSN

Sample:
Your are playing on a server, there is a cheater. You type "!admin CheaterPlayer is cheating"
The admin will receive on msn something like :
!admin from '-=UFB=-hackziner' (STEAM_0:0:186639) say : !admin CheaterPlayer is cheating

http://82.232.102.55/public/images/divers/msnbot.JPG

Command:
  • !admin <message> : send the <message> to server msn contact with the ffac msn bot
CVARS:

Banlist

Description:
FFAC provides a global banlist like steambans or radars.

CVARS:
  • ffac_ffacban (default 1) : Use the FFAC banned steamid database
  • ffac_ban (default 30) : Duration of a FFACBan in Min

Package manager

Description:

FFAC include a package manager like apt/dpkg on debian ... So a package is pack with several files and installation instruction. The package manager will download and install every files from FFAC server and configures everything automaticaly. For now there are about 10 packages.

new(v1.4) : You can access to the hpt_menu with the amxmodmenu command !

Sample:
You want to install amxmatchdeluxe for your server.
You have two solution :
  • in console : "amx_ffac_hpt_install matchdeluxe"
  • in console : "amx_ffac_hpt_menu" and select "amx matchdeluxe"
The package manager will download all plugin file from FFAC server and add all config automaticaly ( With one line you can install a plugin ! )

http://82.232.102.55/public/images/divers/ighptmenu.JPG

Available packages
smallfun ( this package contains, spawnprotection, bunnyhop and lastmanbets )
sanksound ( this package contains sanksound plugin with sounds )
matchdeluxe ( this package contains amx_match_deluxe )
more and more ... use amx_ffac_hpt_menu to display all packages

CVARS:
  • ffac_hpt (default 1) : Enable the packet manager
Admins commands:
  • amx_ffac_hpt_install <package> : Install a package on your server!
  • amx_ffac_hpt_remove <package> : Remove a package
  • amx_ffac_hpt_menu : Show a menu with all packages available
Map download system

Description:
Allow to download map from FFAC server to your server.

Sample:
You don't have fy_pool_day, your admin don't have a ftp access to the server and he wants put fy_pool_day.

He can download with a command on the server :
amx_ffac_map_download fy_pool_day
The server'll download the map and he will be able to changemap to fy_pool_day :)

http://82.232.102.55/public/images/d...apdownload.JPG

Admins commands:
  • amx_ffac_map_download <map> : download a map from the ffac server on your server !
  • amx_ffac_map_list : show the list of downloable maps

Auto update

Description:
Automaticaly download and install the lastest version of FFAC.


admin :

*amx_ffac_ban <user id or steam id> : ban a player for amx_ffac_ffacban minuts, and repport the ban to the ffac server
*amx_ffac_map_download <map> : download a map from the ffac server on your server !
*amx_ffac_map_list : show the list of downloable maps
*amx_ffac_hpt_install <package> : Install a package on your server !
*amx_ffac_hpt_remove <package> : Remove a package
*amx_ffac_hpt_menu : Show a menu with all packages available

CVARS:
  • ffac_autoupdate ( default 1 ) : enable autoupdate

MISC

CVARS:
  • ffac_packetsize ( default 1024 ) : Size of packets
  • ffac_master_server ( default "82.232.102.55" ) : FFAC master server address
Installation :
Only install the plugin on your server. The server will be automaticaly add to the server list.
"No incoming port open required"

Front end :
http://82.232.102.55/FFAC

Require :
Socket

Some stats :

FFAC Stats ( 11 feb )

Total Players : 8840
Total Players : Online
111
Total Kills :
253918
Total Deaths :
248854
Total Connections : 26140
Total Servers :
30
Total Teams :
7
Players Online/Capacity : 111/431
Total Players Online Time : 188 Days 21 Hours and 17 Mins

FFAC Stats ( 1 may )

Total Players 92404
Total Players Online 226
Total Kills 4268608
Total Deaths 4265948
Total Connections 412119
Total Servers 85
Total Teams 27
Players Online/Capacity 226/1620
Total Players Online Time 2824 Days 11 Hours and 37 Mins

Connections of all server on FFAC by day
http://82.232.102.55/FFAC/cgrapm.php
Connections of all server on FFAC by hours
http://82.232.102.55/FFAC/cgraph.php


If you have any questions or suggestions, please ask :)
Even thought you think it's impossible ^^

http://82.232.102.55/FFAC/forum


Thks to Alka for testing new functions in beta ^^


Changelog:

[6/5/2007] 1.4
-allow multiple msn in msn_contact ( use : ffac_msn_contact "[email protected];[email protected]" )
-Extend max msn_contact size from 30 to 128 chars
-Fix command display bug
-Replace valve id lan or steam id lan by ip in the msn contact message
-new natives for db_sys
-indentation problems fix
-multi language support ( set ffac_multi_lang to 1 to test )
-auto download language file if not found !
-integration of the package manager in the amxmodmenu !
-new say command : /me to display your level

[21/4/2007] 1.3

-amx_ffac_hpt_menu //Menu for install new plugin, autodownload the plugin list, ...
-new comands to show server connections stats, say "serverconnections"
-new commands to show changelog, say "ffac changelog"
-new function to display player level on aim : set ffac_skill_on_aim 1
-Some fix with the proxy


[7/4/2007] 1.2
-security fix ( package manager )
-dynamic master server
-new package matchdeluxe
-now package manager and autoupdate are activate by default
-spawn count fixed

neogeo 01-28-2007 11:52

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
merci l'ami :D
thanks

Emp` 01-28-2007 13:34

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
good idea, looks sort of clean (would appreciate if you ran it through an auto indenter), but there are still some small things you can fix (saving things into variables instead of getting them more than once)

Pinkrhino 01-28-2007 14:00

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
Ehm.... does it need Nvault or mysql or anything?

hackziner 01-28-2007 14:19

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
Only sockets and i think ( 95% ) it works with incoming ports closed.

Da_sk8rboy 01-28-2007 15:09

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
You spelled championship wrong
you spelled it-->championchip
:P

hackziner 01-28-2007 15:31

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
Oups ... and I can't change the title :/

Alka 01-28-2007 15:38

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
Push the edit button,after that Go Advanced! now u can edit the tiltle! ;)

s p l i t 01-28-2007 15:40

Re: FFA Championchip (Server stats, "all servers stats", banlist, ... )
 
Remove the .amxx attachment.

Da_sk8rboy 01-28-2007 21:05

Re: FFA Championship (Server stats, "all servers stats", banlist, ... )
 
Quote:

"badly coded" lines.
By that did you mean badly indented?


All times are GMT -4. The time now is 08:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.