1:
Code:
edict_t *pPlayer;
// does this player own an AWP rifle ?
if (pPlayer->v.weapons & (1 << CS_WEAPON_AWP))
; // yes, he does
2:
Code:
// using a server-sided client command, force pPlayer to
// select and drop his AWP
(*g_engfuncs.pfnClientCommand) (pPlayer, "weapon_awp");
(*g_engfuncs.pfnClientCommand) (pPlayer, "drop");
CS_WEAPON_AWP is not defined in the SDK, but look in one or the other CS bot's source code to know its value.
Also check to see whether you need a carriage return (\n) after the client command strings or not.