Raised This Month: $51 Target: $400
 12% 

ideia upgrade csstats add news


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 02-09-2011 , 17:37   ideia upgrade csstats add news
Reply With Quote #1

I'm not sure if there will be any update yet on amxx.
most want to leave here my idea and comment on what I see that this
missing files to improve the status and rank.

I've been reading the documentation page of stats.

http://wiki.amxmodx.org/Stats_File_F...28AMX_Mod_X%29

and cstats
Code:
#if defined _csstats_included
#endinput
#endif
#define _csstats_included

/* Gets stats from given weapon index. If wpnindex is 0
* then the stats are from all weapons. If weapon has not been used function
* returns 0 in other case 1. Fields in stats are:
* 0 - kills
* 1 - deaths
* 2 - headshots
* 3 - teamkilling
* 4 - shots
* 5 - hits
* 6 - damage

* For body hits fields see amxconst.inc. */
native get_user_wstats(index,wpnindex,stats[8],bodyhits[8]);
native get_user_wrstats(index,wpnindex,stats[8],bodyhits[8]);
native get_user_stats(index,stats[8],bodyhits[8]);
native get_user_rstats(index,stats[8],bodyhits[8]);
native get_user_vstats(index,victim,stats[8],bodyhits[8],wpnname[]="",len=0);
native get_user_astats(index,wpnindex,stats[8],bodyhits[8],wpnname[]="",len=0);
native reset_user_wstats(index);

/* Gets overall stats which stored in stats.dat file in amx folder
* and updated on every mapchange or user disconnect.
* Function returns next index of stats entry or 0 if no more exists. */
native get_stats(index,stats[8],bodyhits[8],name[],len,authid[] = "",authidlen = 0);
native get_statsnum();

/*
* new stats:
* 0 - total defusions
* 1 - bomb defused
* 2 - bomb plants
* 3 - bomb explosions
*/
native get_user_stats2(index,stats[4]);
native get_stats2(index,stats[4],authid[] = "",authidlen = 0);
csstats.dat:

Quote:
name
unique
tks
damage
deaths
kills
shots
hits
hs

EVENTES:
Defusions
Defused
Plants
Explosions
psichostats
Quote:
name
dataid
weaponid
statdate
kills
deaths
headshotkills
shots
hits
suicides
damage
ffkills
ffdeaths
shot_head
shot_chest
shot_stomach
shot_leftarm
shot_rightarm
shot_leftleg
shot_rightleg

EVENTS:
joinedct
joinedterrorist
joinedspectator
bombdefuseattempts
bombdefused
bombexploded
bombplanted
bombrunner
killedhostages
rescuedhostages
touchedhostages
vipescaped
vipkilled
ctwon
ctlost
terroristwon
terroristlost
amxmodx stats may be better to copy some events and psichostats,
adding in cstats.dat

I realize that in your amxmodx structure pattern can reach
do the same job as PsychoStats.

Player Status in DB (sqlstats Lite)
http://forums.alliedmods.net/showthread.php?p=613430


proof of this, is this plugin that was created, unfortunately forgot the author
to put the past events that have been inserted.

Code:
EVENTES:
Defusions
Defused
Plants
Explosions
I'm not sure if these events had already been created,
before he would do the job. anyway I think it could
be done much more.

here is my tip. is updated if one day, think of this hypothesis.
whether such information to stay after they were stored even in csstats.dat
sent to the database. would be a very useful thing.

so we could dispense psichostats at once.
since everything can be done with amxmodx.
__________________

Last edited by rx1983; 02-09-2011 at 17:40.
rx1983 is offline
Send a message via MSN to rx1983
Reply



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 06:39.


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