Raised This Month: $ Target: $400
 0% 

Does setting bad frags also affect players rank?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 12-23-2008 , 03:39   Does setting bad frags also affect players rank?
Reply With Quote #1

when we set bad frags on a player eg

Code:
set_pev(id, pev_frags, float(get_user_frags(id) - 100)
will this affect their ranks/scores in amxmodx?
Mlk27 is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 12-23-2008 , 04:41   Re: Does setting bad frags also affect players rank?
Reply With Quote #2

not afaik
Styles is offline
Send a message via AIM to Styles
Mlk27
Veteran Member
Join Date: May 2008
Old 12-23-2008 , 05:35   Re: Does setting bad frags also affect players rank?
Reply With Quote #3

oh..how do i save those frags to their ranks?
Mlk27 is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-15-2009 , 04:25   Re: Does setting bad frags also affect players rank?
Reply With Quote #4

bump!

when does amx save players stats? at map end? round end or real time?
Mlk27 is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-15-2009 , 07:58   Re: Does setting bad frags also affect players rank?
Reply With Quote #5

Quote:
Originally Posted by styles View Post
not afaik
I think it will, because the player's frags are retrieved from the pev_frags field and if you change it, you'll get different results.
Dores is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-15-2009 , 08:30   Re: Does setting bad frags also affect players rank?
Reply With Quote #6

I think rank checks player's kill and death events for setting rank.
__________________
hleV is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-15-2009 , 09:26   Re: Does setting bad frags also affect players rank?
Reply With Quote #7

Quote:
Originally Posted by hleV View Post
I think rank checks player's kill and death events for setting rank.
Some plugins might use pev_[frags|deaths].
Dores is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-26-2009 , 00:08   Re: Does setting bad frags also affect players rank?
Reply With Quote #8

i've just test this using this script. i started with resetting stats file. then set the bad frag but it seemed that amxx did not save the bad frags/deaths at all. frags and deaths in stats file remained 0. is there workaround for this?

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <fakemeta> #define OFFSET_CSDEATHS 444 new const PLUGIN[] = "Bad Frag Count" new const VERSION[] = "1.0" new const AUTHOR[] = "mE" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /badfrag", "ChgFrag") } public ChgFrag(id) {     set_pev(id, pev_frags, float(pev(id, pev_frags) - 10))     fm_set_user_death(id, 100) } fm_set_user_death(const id, const i_NewDeaths) {     set_pdata_int(id, OFFSET_CSDEATHS, i_NewDeaths)         static i_MsgScoreInfo     if(!i_MsgScoreInfo) i_MsgScoreInfo = get_user_msgid("ScoreInfo")         message_begin(MSG_ALL, i_MsgScoreInfo)     write_byte(id)     write_short(get_user_frags(id))     write_short(i_NewDeaths)     write_short(0)     write_short(get_user_team(id))     message_end() }

Last edited by Mlk27; 01-26-2009 at 10:12.
Mlk27 is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 01-26-2009 , 00:18   Re: Does setting bad frags also affect players rank?
Reply With Quote #9

I think it will record the change when you change the map or restart the server.
__________________
stupok is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 01-26-2009 , 00:57   Re: Does setting bad frags also affect players rank?
Reply With Quote #10

stupok, yep it indeed saves stats on map change / server restart but it didnt seem to take the frags/deaths counts that i set
Mlk27 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 09:14.


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