Quote:
Originally Posted by Ayman Khaled
just check if there are still 2 players and they didn't kill each others for 1 min, both will get slayed.
i mean in maps thats round can't end till another team die.
|
that would mess up my server, but sure
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define TIMER 60.0
#define TASKID 996
new two_players[2]
public plugin_init() {
register_plugin("no team ups", "1.0", "Softero")
register_logevent("round_end", 2, "1=Round_End")
RegisterHam(Ham_Killed, "player", "fwd_Ham_Killed_post", 1)
}
public fwd_Ham_Killed_post(id) {
new players[32], count
get_players( players, count, "achi", "")
if(count==2) {
two_players[0] = players[0]
two_players[1] = players[1]
set_task(TIMER, "task", TASKID)
}
}
public task(id) {
user_kill(two_players[0], 1)
user_kill(two_players[1], 1)
}
public round_end() {
remove_task(TASKID, 1)
}
__________________