Spectators Respawning
Posted: Sun Oct 12, 2008 5:59 pm
Ok, I've heard this is an issue and I've investigated it myself in the lovely world of code
.
In shared.inl:
I recommend the following amendment(s):
I am merely trying to find a way to stop people from respawning using scroll of respawn when they are spectating. I am not an avid programmer but still putting forth an effort. I would like to know if this is not right (I'm not using it because I'm concerned it's wrong
) and if not, how can this be accomplished?
Btw, this is using the latest binaries from the SVN as of ~4:30PM.
Slmclarengt aka sleeper @ bndclan.com

In shared.inl:
Code: Select all
public SHARED_IsOnTeam( id )
{
new iTeam = get_user_team( id );
// Counter-Strike or Condition Zero Check
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
{
if ( iTeam == CTS || iTeam == TS )
{
return true;
}
}
// Day of Defeat Check
else if ( g_MOD == GAME_DOD )
{
if ( iTeam == ALLIES || iTeam == AXIS )
{
return true;
}
}
return false;
}
Code: Select all
public SHARED_IsOnTeam( id )
{
new team[2]
get_user_team(id,team,1);
// Counter-Strike or Condition Zero Check
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
{
if ( team[0] == 'C' || team[0] == 'T' )
{
return true;
}
}
// Day of Defeat Check
else if ( g_MOD == GAME_DOD )
{
if ( iTeam == ALLIES || iTeam == AXIS )
{
return true;
}
}
return false;
}

Btw, this is using the latest binaries from the SVN as of ~4:30PM.
Slmclarengt aka sleeper @ bndclan.com