Raised This Month: $ Target: $400
 0% 

Help rescript.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
weegoing
Junior Member
Join Date: Feb 2006
Location: Moscow
Old 03-12-2006 , 08:38   Help rescript.
Reply With Quote #1

The People help me with this squeak, me it is necessary that modes was enclosed on defaulty, help please

Code:
/* 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 :)

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: -
	http://forums.alliedmods.net/showthread.php?p=29461#31377

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

#include <amxmodx>
#include <fun>

new bool:g_aimpracon = false

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")
		return PLUGIN_CONTINUE
	}
	new arg[8]
	read_argv(1, arg, 7)

	if(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")
		g_aimpracon = true
	}
	else if(equali(arg, "0"))
	{
		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")
		g_aimpracon = false
	}
	else
	{
		client_print(id, print_console, "[AMXX] Type aim_prac <1/0> to use")
	}
	return PLUGIN_HANDLED
}

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>")
}

public client_putinserver(id)
{
	if(!g_aimpracon)
		return PLUGIN_HANDLED
	else
	{
		set_user_hitzones(0,0,2)
	}
	return PLUGIN_HANDLED
}
weegoing is offline
Send a message via ICQ to weegoing
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode