AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does setting bad frags also affect players rank? (https://forums.alliedmods.net/showthread.php?t=82426)

Mlk27 12-23-2008 03:39

Does setting bad frags also affect players rank?
 
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?

Styles 12-23-2008 04:41

Re: Does setting bad frags also affect players rank?
 
not afaik

Mlk27 12-23-2008 05:35

Re: Does setting bad frags also affect players rank?
 
oh..how do i save those frags to their ranks?

Mlk27 01-15-2009 04:25

Re: Does setting bad frags also affect players rank?
 
bump!

when does amx save players stats? at map end? round end or real time?

Dores 01-15-2009 07:58

Re: Does setting bad frags also affect players rank?
 
Quote:

Originally Posted by styles (Post 731872)
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.

hleV 01-15-2009 08:30

Re: Does setting bad frags also affect players rank?
 
I think rank checks player's kill and death events for setting rank.

Dores 01-15-2009 09:26

Re: Does setting bad frags also affect players rank?
 
Quote:

Originally Posted by hleV (Post 744558)
I think rank checks player's kill and death events for setting rank.

Some plugins might use pev_[frags|deaths].

Mlk27 01-26-2009 00:08

Re: Does setting bad frags also affect players rank?
 
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() }

stupok 01-26-2009 00:18

Re: Does setting bad frags also affect players rank?
 
I think it will record the change when you change the map or restart the server.

Mlk27 01-26-2009 00:57

Re: Does setting bad frags also affect players rank?
 
stupok, yep it indeed saves stats on map change / server restart but it didnt seem to take the frags/deaths counts that i set


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

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