нужен грамотный сток fm на set команды. В инете нашел много чего но хотелось бы знать норм сток или нет??
P.S RE не предлагать!
C++:
#include <amxmodx>
#include <fakemeta>
#if cellbits == 32
#define OFFSET_CSTEAMS 114
#else
#define OFFSET_CSTEAMS 139
#endif
#define OFFSET_LINUX 5
new const TEAM_NAMES[][] =
{
"UNASSIGNED", "TERRORIST", "CT", "SPECTATOR"
}
stock fm_cs_get_user_team(index)
return get_pdata_int(index, OFFSET_CSTEAMS, OFFSET_LINUX)
stock fm_cs_set_user_team(index, team)
{
if (fm_cs_get_user_team(index) == team) return 0
set_pdata_int(index, OFFSET_CSTEAMS, team, OFFSET_LINUX)
dllfunc(DLLFunc_ClientUserInfoChanged, index, engfunc(EngFunc_GetInfoKeyBuffer, index))
emessage_begin(MSG_ALL, get_user_msgid("TeamInfo"))
ewrite_byte(index); ewrite_string(TEAM_NAMES[team]); emessage_end()
return 1
}