Connections Counter
Here is my idea if someone know how to do it make it here :)
Count player connections and store in database. If user have 100 connections => newbie If user have 500 connections => semi-pro If user have 750 connections => pro If user have 1000 connections => veteran ------------------------------------------------- Chat => [Veteran]Nickname Scoretab => [Veteran]Nickname Connect => Nickname is veterean in this server ------------------------------------------------- |
Re: Connections Counter
Hey thank you :)
|
Re: Connections Counter
[EDIT] - 0.0.6: Added [Admin] tag
PHP Code:
|
Re: Connections Counter
very good thanks again !
|
Re: Connections Counter
np, any suggestions? :mrgreen:
|
Re: Connections Counter
Maybe you can combine with this plugin http://forums.alliedmods.net/showthread.php?p=878874
If user have 100 connections => Veteran to can choose join/leaver messages ;] |
Re: Connections Counter
[EDIT] This version Saves leave message:
PHP Code:
|
Re: Connections Counter
You are the best dude ever http://www.pic4ever.com/images/2.gif I own you one :)
|
Re: Connections Counter
Just a few things you should correct:
1. You should not call any functions on a player at client_disconnect() because there are times when the player will already be gone when this is called. It is better to cache a players name and steam-id into global strings; this solves the disconnect problem and it also saves you numerous native calls. You may notice that you do not run into any errors while testing but your plugin will occasionally error when left running. 2. In SaveData() you are retrieving the users authid into szAuthID and then copying it to vaultkey for your nvault_set() call. Why not just use szAuthID as your key? 3. formatex() should be used instead of format(). 4. In LoadData you are formatting vaultdata with the users data but then read data from vault into this string. This makes no sense because you format the string with data just to immediately over-write it with data read from vault. 5. You can call remove_task without calling task_exists. 6. iPlayers[] can be defined locally in HookSay_Team() since it is not used anywhere else in plugin. 7. Calling get_players() with a team name but without flag "e" which tells it you want to pass a team name. See http://www.amxmodx.org/funcwiki.php?go=func&id=174 8. nVault never closed. Add plugin_end() and call nvault_close(). There may be more but I'm tired. Optional, but you can do something like this to make variables and code neater: PHP Code:
|
Re: Connections Counter
Maybe you can add playtime ? :)
|
All times are GMT -4. The time now is 19:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.