You want to know which duel is currently running ? Then, do it with a simple boolean.
PHP Code:
enum _: eDuels
{
DUEL_NONE,
DUEL_SCOUT,
DUEL_KNIFE
}
new bool: IsDuel [ eDuels ]
When he choose knife duel:
PHP Code:
IsDuel [ DUEL_NONE ] = false
IsDuel [ DUEL_SCOUT ] = false
IsDuel [ DUEL_KNIFE ] = true
When he choose a scout duel:
PHP Code:
IsDuel [ DUEL_NONE ] = false
IsDuel [ DUEL_SCOUT ] = true
IsDuel [ DUEL_KNIFE ] = false
When a duel ends:
PHP Code:
IsDuel [ DUEL_NONE ] = true
IsDuel [ DUEL_SCOUT ] = false
IsDuel [ DUEL_KNIFE ] = false
When you give weapons or sth like this, just check which bool is true.
PHP Code:
if ( ! IsDuel [ DUEL_NONE ] ) {
if ( IsDuel [ DUEL_SCOUT ] ) {
//we have a scout duel
}
if ( IsDuel [ DUEL_KNIFE ] ){
//we have a knife duel
}
}
I don't know what you want to do with duel_none, but based on your previous example, this is how you should do it, whatever it is.