No problem.
The indexes are achieved many ways. It is more common that they are passed as function parameters, but it is done other ways, as well.
Ex:
Code:
#include <hamsandwich>
#include <fakemeta>
public client_connect( id )
{
// id is a player index passed through func parameters
}
public plugin_init()
{
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_ak47", "HamPrimAttack" )
}
public HamPrimAttack( Ent )
{
new id = pev( Ent, pev_owner )
// id is a player index not passed in function params
}
__________________