How to make this to play 10 rounds 1vs1?
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define PLUGIN "1vs1"
#define AUTHOR "x"
#define VERSION "1.0"
new players[32]
new count
new randomtero
new randomct
new g_current_tero
new g_current_ct
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "playerSpawn", 1);
}
public playerSpawn(id)
{
g_current_tero++, g_current_ct++,
get_players(players,count,"e","TERRORIST")
randomtero = players[random(count)]
set_pev( randomtero , pev_origin , { 300.0 , -150.0 , -650.0 } );
get_players(players,count,"e","CT")
randomct = players[random(count)]
set_pev( randomct , pev_origin , { 50.0 , -150.0 , -650.0 } );
if( g_current_tero < 1, g_current_ct < 1 ) {
}
}