Not tested but should work.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
new bool:gCanShoot[ 33 ];
public plugin_init()
{
register_plugin( "Shot Delay/Restrict", "0.1", "hornet" );
RegisterHam( Ham_Spawn, "player", "hamPlayerSpawn", 1 );
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_awp", "hamPrimaryAtkAWP" );
}
public hamPlayerSpawn( id )
{
remove_task( id );
gCanShoot[ id ] = true;
}
public hanPrimaryAtkAWP( ent )
{
new id = pev( ent, pev_owner );
if( gCanShoot[ id ] )
{
gCanShoot[ id ] = false;
set_task( 30.0, "Reset", id );
}
else return HAM_SUPERCEDE;
return PLUGIN_CONTINUE;
}
public Reset( id )
{
gCanShoot[ id ] = true;
}