Wrote for newbies.
It is recommended using macros instead of writing numbers right in the code.
PHP Code:
// offsets
#define m_iTeam 114
public plugin_init() {
//...
}
some_function(id) {
//...
iTeam = get_pdata_int(id, m_iTeam)
//...
}
I'm not sure is it required to check
pev_valid(id) == 2 before using
get_pdata_int in that particular case...
__________________