Yes! That is the correct way.
But don't forget that linux and 64 bit proccecors have different offsets so it is important to use this ->
PHP Code:
#if cellbits == 32
#define OFFSET_TEAM 114
#else
#define OFFSET_TEAM 139
#endif
#define OFFSET_LINUX 5
get_pdata_int(id,OFFSET_TEAM,OFFSET_LINUX)
set_pdata_int(index, OFFSET_TEAM, _:team,OFFSET_LINUX)
__________________