Example:
public plugin_init()
{
register_forward(FM_TraceLine,"traceline",1);
}
public traceline(Float:v1[3],Float:v2[3],noMonsters,pentToSkip)
{
if(is_user_connected(pentToSkip) && is_user_alive(pentToSkip))
{
set_tr(TR_pHit,pentToSkip); // make users shoot themselves
}
}
|