Not sure what u mean with duel, but here's a quicky, untested.
PHP Code:
/* Sublime AMXX Editor v2.2 */
#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>
#pragma semicolon 1
#define PLUGIN "DR Duel"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"
#if !defined MAX_PLAYERS
const MAX_PLAYERS = 32;
#endif
new iPlayer, iNum, iPlayers[MAX_PLAYERS];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /ct", "StartDuel");
RegisterHam(Ham_Spawn, "player", "PostPlayerSpawn", 1);
}
public StartDuel(id)
{
get_players(iPlayers, iNum, "e", "CT");
if(iNum == 1)
{
get_players(iPlayers, iNum, "a");
for(new i; i < iNum; i++)
{
iPlayer = iPlayers[i];
strip_user_weapons(iPlayer);
give_item(iPlayer, "weapon_deagle");
cs_set_user_bpammo(iPlayer, CSW_DEAGLE, 35);
}
}
}
public PostPlayerSpawn(id)
{
for(new i; i < iNum; i++)
{
iPlayer = iPlayers[i];
strip_user_weapons(iPlayer);
give_item(iPlayer, "weapon_knife");
}
}
__________________