Jump to content


Member Since 16 Feb 2011
Offline Last Active May 25 2021 07:00 AM

#4664 Plugins HeadShot only Bug

Posted by Tudi on 12 January 2012 - 06:03 PM


Salut am si eu un server de headshot only dar plugins-ul are un bug, si anume plugins-ul nu intra automat trebuie sa execut comanda aim_prac 1 cand dau aceasta comanda toti playeri de pe server trebuie sa dea hs pentru a omora dar daca intra alt player pe sv el poate omora si fara sa dea headshot omoara normal, trebuie sa execut iar comanda aim_prac 1 pentru ca acel player sa omoare doar cand da headshot.

Sursa plugins

/* AMX Mod X Aim Practice.

I know there is a plugin that already allows only headshots.
I made it because i found it to be very buggy, so if you only
want the headshot mode, use this <img src='http://forum.krond.org/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />

Version History: -
	First release: 1.0
	Fixed print_chat from id, to all. Now everyone knows when its enabled

Usage: -
	aim_prac <on|off> or  <1|0>
Get the latest version at: -

 (c) 2003, James "rompom7" Romeril
 This file is provided as is (no warranties).

#include <amxmodx>
#include <fun>

public aim_prac(id)
	if (id && !((get_user_flags(id) & ADMIN_LEVEL_A)))
		client_print(id, print_console, "[AMXX] You do not have access to this command")
	new arg[8]
	read_argv(1, arg, 7)

	if((equali(arg, "on"))||(equali(arg, "1")))
		set_user_hitzones(0 ,0, 2)
		client_print(id, print_console, "[AMXX] ENABLED Headshot only mode")
		client_print(0, print_chat, "[AMXX] ENABLED Headshot only mode")
		set_user_hitzones(0, 0, 255)
		client_print(id, print_console, "[AMXX] DISABLED Headshot only mode")
		client_print(0, print_chat, "[AMXX] DISABLED Headshot only mode")

public plugin_init()
	register_plugin("Aim Practice","1.0","James Romeril")
	register_concmd("aim_prac", "aim_prac", ADMIN_LEVEL_A, "aim_prac <on|off> or <1|0>")

O idee ar fi sa pun un task pentru fiecare player cand se conecteaza sa se execute comanda aim_prac 1 dupa doua trei secunde dar exista riscul sa pice serveru din cate stiu, daca aveti voi vro idee cum sa stea constant plugins-ul de hs only activ mar ajuta mult.]

  • -1