Код:
public client_death(killer, victim, wpnindex, hitplace, TK) {
new rd_maxplayers = get_cvar_num("amx_bonus_maxplayers")
new restrict_bonus_knife = get_cvar_num("amx_restrict_bonus_knife")
new selfkill = (victim == killer) ? true : false
if ((!selfkill) && is_user_connected(killer) && restrict_bonus_knife) {
if (wpnindex == CSW_KNIFE) {
if (get_playersnum() >= rd_maxplayers) {
static nume[32], nume2[32]
get_user_name(killer, nume, 31)
get_user_name(victim, nume2, 31)
server_cmd("amx_givepoints ^" % s ^ " 500", nume)
}
}
}
}
If I pull with awp and make a fast switch, it appears that I have killed with a knife, how can i prevent this? Thanks
Последнее редактирование модератором: