Thank You, work, but with errors.
It's work if I throw first grenade, change active weapon, then set weapon to grenade again. But if I'm not change active weapon, try to throw second grenade at once - grenade will not be thrown, never.
May be block throw with CurWeapon?
PHP Code:
public evCurWeapon(id)
{
new Float:Time = get_gametime() - g_fWaitTime[id];
if(Time < 15)
{
client_print(id, print_center, "Please, wait %0.0f seconds", 15 - Time);
engclient_cmd(id, "weapon_knife");
}
}
This code work, but how I can set active weapon from 1 slot (if have) or 2?