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