Raised This Month: $95 Target: $400
 23% 

PInfo (shows connections/rounds/time played) CS/NS/DOD


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical        Approver:   EKS (167)
OneEyed
AMX Mod X Beta Tester
Join Date: Jun 2005
Old 01-24-2006 , 23:50   PInfo (shows connections/rounds/time played) CS/NS/DOD
Reply With Quote #1

PInfo 2.0
Comments:
Displays player information. For Example...
First Nick is the very first nick they had when their profile was created.
Time Played is total time person has played on your server. Not just their current session.
[ FIRST NICK: OneEyed ][ CONNECTS: 152 ][ ROUNDS: 25 ][ TIME PLAYED: 2 Days 3 Hours 52 Minutes ]

Note:
Plugin is self-sufficient, just compile and add to plugins.ini / plugin folder and your set.
All player data will be saved into pinfo.vault @ amxmodx/data/vault folder.

Chat Command:
!info name - Typed in chat. If no name specified, returns your own info.

Version: 2.0
Requires: AMXX 1.70+ and NVAULT module
Gametype: CS/NS/DOD

Author: OneEyed
Date: 01-24-2006
Email: [email protected]
IRC: #modns (gamesurge.net)

Tested:
WIN32 Tested and Approved! LINUX untested.

Credits:
voogru - He used it on his server (I sorta replicated it)

Change Log:
== v1.01
- Removed ServerFrameFake (bugged other plugins at the speed it needed to run.)
== v1.1
- Fixed !info not working on dead players.
- Fixed user profiles not being created.
- Plugin doesn't update every 20 seconds now, only one time, when map changes.
== v2.0
- Information is saved to nVault instead of *.ini. (Improves performance 10 fold.)

Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
Attached Files
File Type: sma Get Plugin or Get Source (pinfo.sma - 5400 views - 7.0 KB)
__________________
OneEyed is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-25-2006 , 09:10  
Reply With Quote #2

Cool...will test this when i get home.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-25-2006 , 10:13   Re: PInfo (shows connections/rounds/time played) CS/NS/DOD
Reply With Quote #3

Quote:
Originally Posted by OneEyed
All player data will be saved into pinfo.ini @ amxmodx/config folder.
The configs folder is not the proper place for data that you log. The proper place is the logs folder. The configs folder should only be used for files that contain information you use to configure your plugin.
Brad is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 01-25-2006 , 14:47  
Reply With Quote #4

nice plugin but one thing i dont like when player dead u cant see his info...
`666 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-25-2006 , 14:48  
Reply With Quote #5

Code:
if(equal(name[0], "") || equal(name[1], ""))
What is the purpose of using 2nd equal?
Also if you are trying to check if string is empty you do not need to use special function like equal, strlen, etc.

Code:
//             new playa = cmd_target(id,name,4) // Don't block access...             //new playa = find_player("bhl",name)             if(playa > 0)                 printUserInfo(id, playa)             else                 client_print(id,print_chat,"[PInfo] - There is no player with that name.")
Let me guess that you are not realize that cmd_target(id,name,4) would return 0 in case player isn't alive.
VEN is offline
OneEyed
AMX Mod X Beta Tester
Join Date: Jun 2005
Old 01-25-2006 , 21:46  
Reply With Quote #6

UPDATED:
Fixed !info not working on dead players.
Fixed user profiles not being created.
Plugin doesn't update every 20 seconds now, only one time, when map changes.
OneEyed is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 01-26-2006 , 04:04  
Reply With Quote #7

Thanx OneEyed
`666 is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 01-26-2006 , 11:23  
Reply With Quote #8

i'll give it a try once i fix my problems on my server and re-enable amxx
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 01-28-2006 , 14:02  
Reply With Quote #9

I think its dispalyes time rong. I played about 3 hours and i got already 7+ hours on info Maybe it dosent detect what i left game intill map change?
`666 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-20-2006 , 03:31  
Reply With Quote #10

Trashed by request of author.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:24.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode