AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   errors and more errors help (https://forums.alliedmods.net/showthread.php?t=17981)

One shot dont miss! 09-13-2005 00:37

errors and more errors help
 
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! 09-14-2005 00:31

God LOL plz help me

XxAvalanchexX 09-14-2005 01:22

What's the question?


All times are GMT -4. The time now is 14:18.

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