* name/name2 variable size should be MAX_NAME_LENGTH (=32)
* You getting message two times cause your x variable loop starts with 0, and CromChat has support to display message to everyone when player index is zero. Start looping from 1
* set_user_health to zero means player's health will change to zero and hud will be updated, player will move incorrectly but player will be alive, if you want to kill him use dllfunc & DLLFunc_ClientKill
*
Code:
2) Sometimes it transfer one player instead of two players and sometimes both (both is what I need)
(I want them to swap each other, but you will see that in code)
Try debugging use server_print if you haven't hosted server. Print player indexes their teams if you want better understanding write also player names. Check if GetTopKiller is working well.
__________________