Raised This Month: $ Target: $400
 0% 

Register kills?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 03-06-2006 , 06:05  
Reply With Quote #4

Yeah, i got it. But i didn't see a good and specific sripting question in your posts.

You can use csx module to get total kills:
Code:
//csstats.inc /* Gets overall stats which are stored in file on server * and updated on every respawn or user disconnect. * Function returns the position in stats by diff. kills to deaths. */ native get_user_stats(index,stats[8],bodyhits[8]); /* Gets round stats of player. */ native get_user_rstats(index,stats[8],bodyhits[8]); /* 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);

If you want count kills yourself register DeathMsg event and check if killer killed someone else, then increase global variable value + 1
VEN is offline
 



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 20:17.


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