i want this function work for ct and also rcon flagged admins how to do it?
Code:
public Touch_Wall(entity, id)
{
if(is_user_alive(id))
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT) {
if(g_flDelay[id] < get_gametime())
{
new intCvarButton;
intCvarButton = get_pcvar_num(g_cvarButton);
if(!intCvarButton || (intCvarButton && pev(id, pev_button) & IN_USE))
{
set_player_behindwall(id);
}
}
}
}
}