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:
- AMXX 1.76d
n - MetaMod-P 1.19p31
n

