Raised This Month: $ Target: $400
 0% 

errors and more errors help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One shot dont miss!
Senior Member
Join Date: Jun 2005
Old 09-13-2005 , 00:37   errors and more errors help
Reply With Quote #1

ok im making a plugin its called Trigun deagle aim first of all u DL a Trigun deagle but then i wantted to make this plugin to be 3 in 1 so first u DL a skin then if the admin wants to put on the aim part he can(making it headshot only kills) then i also wanted to make it give ulimtied ammo to the deagle like from weapon arena where on the hud it says u have only 7 bullets an no extra but u do have extra 7 / 0 <-but u have unlimited ammo so far i got aim down and the skin dl but i get errors plz help

Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>
#include <fun>

#define PLUGIN "Trigun Deagle Aim"
#define VERSION "0.1"
#define AUTHOR "One Shot"


public plugin_init()
{
	register_plugin("Trigun Deagle Aim","0.1","One Shot")
	register_concmd("aim_headshot", "aim_headshot", ADMIN_LEVEL_A, "aim_headshot <on|off> or <1|0>")
	register_event("Curweapon","set_models","be","1=1")
}
public aim_headshot(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, "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")
	}
	else
	{
		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_precache()
{
		precache_model("models/v_Trideagle.mdl") 
		precache_model("models/w_Trideagle.mdl")
		precache_model("models/p_Trideagle.mdl")
		return PLUGIN_CONTINUE
	}
}
save to sma. then try to compile read errors plzz thx in advance
__________________
One shot dont miss! is offline
 


Thread Tools
Display Modes

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 14:18.


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