PDA

View Full Version : dod_set_user_kills bug?


diamond-optic
06-07-2007, 10:57 PM
well recently i noticed a problem with using the dod_set_user_kills native..

when setting refresh to 0.. it works as it should.. adds the kill but doesnt show up till something else updates the scoreboard..
but 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..

i 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)

i then noticed that this problem was happening in every plugin i have that uses the dod_set_user_kills native..
so anyway.. ive attached a little plugin if your interested in checking it for yourself..

the commands are:

debug_kills1
- this is the standard amxx native.. which works but needs something else to refresh the scoreboard
set_user_frags(id,dod_get_user_kills(id)+1)debug_k ills2
- this is the dod native w/ refresh set to 0.. which works but needs something else to refresh the scoreboard
dod_set_user_kills(id,dod_get_user_kills(id)+1,0)d ebug_kills3
- 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...
dod_set_user_kills(id,dod_get_user_kills(id)+1,1)d ebug_kills4
- 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..
new kills = dod_get_user_kills(id)+1

dod_set_user_kills(id,kills,0) //THIS ALSO WORKS: set_user_frags(id,kills)

message_begin(MSG_BROADCAST, get_user_msgid("Frags"), {0,0,0}, 0);
write_byte(id);
write_short(kills);
message_end();


if this is just my server that'd be kinda wierd... lol

running:
AMXX 1.76d
MetaMod-P 1.19p31

TigerMan4
06-08-2007, 10:04 AM
question

if 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 ?

that would be awsome.

why ?

because 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.

so that would be sweet , if this could get rid of my icon.

=|[76AD]|= TatsuSaisei
06-08-2007, 04:19 PM
question

if 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 ?

that would be awsome.

why ?

because 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.

so that would be sweet , if this could get rid of my icon.

LOL, 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...

The 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...

which BTW, I shall be testing this today diamond ...

diamond-optic
06-09-2007, 01:22 AM
heheh

i made a new thread (http://www.dodplugins.net/forums/showthread.php?p=6185) bout the invis...

diamond-optic
06-19-2007, 04:33 PM
come on someone prove me either right or wrong on this lol..

xxavalanchexx
06-22-2007, 11:40 PM
I just confirmed this bug and filed a report about it: http://bugs.alliedmods.net/?do=details&task_id=437

diamond-optic
06-23-2007, 12:32 AM
:D thanks avalanche