PHP Code:
public Cmd_KillVip(id) {
new players[32], ts, ct
get_players(players, ts, "a", "TERRORIST")
get_players(players, ct, "a", "CT")
new randomtsplayer = players[random(ts)]
new randomctplayer = players[random(ct)]
set_user_health(randomtsplayer, 300)
set_user_health(randomctplayer, 300)
ColorChat(id, GREEN, "[%s] Objective:^1 Kill the opposite VIP!", szPrefix)
ColorChat(id, GREEN, "[%s]^1 The current round is:^4 Kill the VIP!", szPrefix)
}
Will this work?
__________________