I guess this is what you meant, but the message is printed every one second while in the buy zone.. how am i supposed to trigger it only when the "b" button is pressed ?
PHP Code:
public en_msg_buy_zone(msg_id, msg_dest, msg_entity)
{
static szIcon[8];
get_msg_arg_string(2, szIcon, 7);
if(equal(szIcon, "buyzone") && get_msg_arg_int(1))
{
set_pdata_int(msg_entity, 235, get_pdata_int(msg_entity, 235) & ~(1<<0));
client_print(0, print_chat, "blabla 1")
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
__________________