PHP Code:
public plugin_init()
{
register_message(get_user_msgid("Account"), "fw_message_account");
}
public fw_message_account(msgid, dest, id)
{
const ARG_USER_ACCOUNT = 1;
const ARG_ACCOUNT_VALUE = 2;
const MSGID_ACCOUNT_MAX_ARGS = 2;
if(get_msg_args() >= MSGID_ACCOUNT_MAX_ARGS)
{
if(get_msg_argtype(ARG_ACCOUNT_VALUE) == ARG_LONG)
{
if(get_msg_arg_int(ARG_ACCOUNT_VALUE) > -1) set_msg_arg_int(ARG_ACCOUNT_VALUE, ARG_LONG, gKillerPoints[clamp(get_msg_arg_int(ARG_USER_ACCOUNT), 1, MAX_PLAYERS)]);
}
}
}
__________________