After looking at some debug stack traces I see some signs that a few natives are being called with ids that do not refer to valid players, I am assuming they are 0 but havent debugged further on that end yet.
Will is_valid_ent( id ) work to tell me if a passed playerid refers to a valid player, or if not is there another preferred way to handle this?