If you wont to make CT win only and don't want to use additional modules, here's an example:
forcectwin command should be called by CT player (you could adapt yourself to your needs).
If there's a push at info_player_start location, you should do some checks to avoid errors.
Also, you can set render to hostage to make it invisible.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
public plugin_init()
{
register_concmd("forcectwin", "forcectwin")
}
public forcectwin(id)
{
// id must be from CT team and alive
new spawn = find_ent_by_class(spawn, "info_player_start")
create_entity("hostage_entity")
new hostage
new Float:ori[3]
entity_get_vector(spawn, EV_VEC_origin, ori)
while((hostage = find_ent_by_class(hostage, "hostage_entity")))
{
server_print("hostage %i %f %f %f", hostage, ori[0], ori[1], ori[2])
entity_set_origin(hostage, ori)
ExecuteHamB(Ham_Use, hostage, id, id, 1, 1.0)
}
return PLUGIN_HANDLED
}
__________________