Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

dod_set_user_kills bug?

by diamond-optic · 2007-06-08 · 6 replies · 1210 views · 17 downloads

Read the thread (7 posts)

From the first post

well recently i noticed a problem with using the dod_set_user_kills native..
n
nwhen setting refresh to 0.. it works as it should.. adds the kill but doesnt show up till something else updates the scoreboard..
nbut when setting it to 1, it makes the player appear 'dead' on the scoreboard and the team icon above their head disappears till they actually die..
n
ni was always under the impression that this native worked fine when setting refesh to 1.... maybe its a problem with my server.. but i happens on both my dedicated linux server & a local win32 server (with all 3rd party plugins off except one to test the native)
n
ni then noticed that this problem was happening in every plugin i have that uses the dod_set_user_kills native..
nso anyway.. ive attached a little plugin if your interested in checking it for yourself..
n
nthe commands are:
n
ndebug_kills1
n
- this is the standard amxx native.. which works but needs something else to refresh the scoreboard
n
set_user_frags(id,dod_get_user_kills(id)+1)
debug_kills2
n
- this is the dod native w/ refresh set to 0.. which works but needs something else to refresh the scoreboard
n
dod_set_user_kills(id,dod_get_user_kills(id)+1,0)
debug_kills3
n
- this is the dod native w/ refresh set to 1.. after using this command you should notice the kill appears for you on the scoreboard, but it also says you are dead...
n
dod_set_user_kills(id,dod_get_user_kills(id)+1,1)
debug_kills4
n
- this is what im currently doing to get around the problem... set the kills with refresh at 0 and then use the Frags message to update the scoreboard..
n
new kills = dod_get_user_kills(id)+1n    ndod_set_user_kills(id,kills,0)    //THIS ALSO WORKS: set_user_frags(id,kills)n    nmessage_begin(MSG_BROADCAST, get_user_msgid("Frags"), {0,0,0}, 0);nwrite_byte(id);nwrite_short(kills);nmessage_end();

n
n
nif this is just my server that'd be kinda wierd... lol
n
nrunning:

    n
  • AMXX 1.76d
    n
  • MetaMod-P 1.19p31

Files

debug_settingkills.sma v1.0 1 KB 17 dl Download Compile

The thread

All 7 posts from 4 people on dod_set_user_kills bug?, kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-07-2007, 09:57 PM #1

well recently i noticed a problem with using the dod_set_user_kills native..nnwhen setting refresh to 0.. it works as it should.. adds the kill but doesnt show up till something else updates the scoreboard..nbut when setting it to 1, it makes the player appear 'dead' on the scoreboard and the team icon above their head disappears till they actually die..nni was always under the impression that this native worked fine when setting refesh to 1.... maybe its a problem with my server.. but i happens on both my dedicated linux server & a local win32 server (with all 3rd party plugins off except one to test the native)nni then noticed that this problem was happening in every plugin i have that uses the dod_set_user_kills native..nso anyway.. ive attached a little plugin if your interested in checking it for yourself..nnthe commands are:nndebug_kills1n- this is the standard amxx native.. which works but needs something else to refresh the scoreboardn

set_user_frags(id,dod_get_user_kills(id)+1)
debug_kills2n- this is the dod native w/ refresh set to 0.. which works but needs something else to refresh the scoreboardn
dod_set_user_kills(id,dod_get_user_kills(id)+1,0)
debug_kills3n- this is the dod native w/ refresh set to 1.. after using this command you should notice the kill appears for you on the scoreboard, but it also says you are dead...n
dod_set_user_kills(id,dod_get_user_kills(id)+1,1)
debug_kills4n- this is what im currently doing to get around the problem... set the kills with refresh at 0 and then use the Frags message to update the scoreboard..n
new kills = dod_get_user_kills(id)+1n    ndod_set_user_kills(id,kills,0)    //THIS ALSO WORKS: set_user_frags(id,kills)n    nmessage_begin(MSG_BROADCAST, get_user_msgid("Frags"), {0,0,0}, 0);nwrite_byte(id);nwrite_short(kills);nmessage_end();
nnnif this is just my server that'd be kinda wierd... lolnnrunning:
  • n
  • AMXX 1.76dn
  • MetaMod-P 1.19p31

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
06-08-2007, 09:04 AM #2

questionrnrnif I use this plugin , are you saying it will make the icon over my head disapear untill I die ? and no one else in the server on my team can see it ?rnrnthat would be awsome.rnrnwhy ?rnrnbecause with the invisible plugin that I use to catch cheaters ( caught 3 more last night ) someone on your team will rat you when they see you invisible every time.rnrnso that would be sweet , if this could get rid of my icon.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
06-08-2007, 03:19 PM #3
questionn nif I use this plugin , are you saying it will make the icon over my head disapear untill I die ? and no one else in the server on my team can see it ?n nthat would be awsome.n nwhy ?n nbecause with the invisible plugin that I use to catch cheaters ( caught 3 more last night ) someone on your team will rat you when they see you invisible every time.n nso that would be sweet , if this could get rid of my icon.
n nLOL, there IS specific code to remove the iconas over all players heads... I believe the code is around... the purpose of providing THIS code that diamond posted is for TESTING and VERIFICATION purposes of the native involved and is not a "production" plugin meant for public usage...n nThe ONLY purpose is to test the code and report back the findings, to help establish if it IS actually a problem with the DOD modules, or if it a strange occurence on his personal servers...n nwhich BTW, I shall be testing this today diamond ...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-09-2007, 12:22 AM #4

hehehnni made a new thread bout the invis...n

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-19-2007, 03:33 PM #5

come on someone prove me either right or wrong on this lol..

xxavalanchexx
posted here
Posts: 13
Threads: 2
Joined: Oct 2006
06-22-2007, 10:40 PM #6

I just confirmed this bug and filed a report about it: http://bugs.alliedmods.net/?do=details&task_id=437

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-22-2007, 11:32 PM #7

:D thanks avalanche

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC