This is for the
Deathrace Mod. Original code, it executes
user_silentkill to kill all the players when someone wins the round (the mod it's played only as a Counter-Terrorist), but i founded the
Round Terminator plugin wich can make the round terminate without killing all the players. The problem is, how to ignore the player who wins the deathrace (Pressing the finish button, last man alive) so the command
user_silentkill will have effect only the rest of the players? Heres the part of the code wich i'm talking about
:
PHP Code:
new Players[32]
new playerCount, i, playerdr
get_players(Players, playerCount, "a")
for (i=0; i<playerCount; i++)
{
playerdr = Players[i]
new frags = get_pcvar_num(dr_winfrags)
set_user_frags(id, get_user_frags(id) + frags) - how to ignore him(id) from the bellow task
user_silentkill(playerdr) - this kills the players when the button it's pushed
}
}
P.S I've already asked in the Mod topic, but the author didn't knew a method.
__________________