Raised This Month: $51 Target: $400
 12% 

Deagle Sniper v0.1.3


Post New Thread Reply   
 
Thread Tools Display Modes
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-12-2009 , 11:00   Re: Deagle Sniper v0.1.2
Reply With Quote #41

PHP Code:
/* AMX Mod script

* (c) 2009, fezh
* This file is provided as is (no warranties).
*
*/

#include <amxmodx>
#include <cstrike>
#include <fakemeta>

// Plugin Stats
#define PLUGIN "Deagle Sniper"
#define VERSION "0.1.2"
#define AUTHOR "fezh"

// Deagle Custom Model
new DEAGLE_MODEL64 ] = "models/v_knife_new.mdl"

// Zoom Array
new g_hasZoom33 ]

// Misc Stuff
new szClipszAmmo

public plugin_init()
{
    
// Register Plugin
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
// Check Current Weapon
    
register_event"CurWeapon""event_cur_weapon""be""1=1" )

    
// Command Start
    
register_forwardFM_CmdStart"forward_cmdstart" )

    
// Plugin Version
    
register_cvar"deagle_sniper"VERSIONFCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY )
}

public 
plugin_precache()
{
    
precache_modelDEAGLE_MODEL )
}

public 
client_putinserverid )
{
    
set_task20.0"plugin_message"id )
}

public 
forward_cmdstartiduc_handleseed )
{
    if( !
is_user_aliveid ) ) 
        return 
PLUGIN_HANDLED
    
    
if( ( get_ucuc_handleUC_Buttons ) & IN_ATTACK2 ) && !( pevidpev_oldbuttons ) & IN_ATTACK2 ) )
    {
        new 
szWeapID get_user_weaponidszClipszAmmo )

        if( 
szWeapID == CSW_KNIFE && !g_hasZoomid ] )
        {
            
g_hasZoomid ] = true
            cs_set_user_zoom
idCS_SET_FIRST_ZOOM)
            
emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )
        }

        else 
        {    if( 
g_hasZoomid ] )
            {
                
g_hasZoomid ] = false
                cs_set_user_zoom
idCS_RESET_ZOOM)
            }
        }

        return 
PLUGIN_HANDLED
    
}

    return 
PLUGIN_HANDLED
}

public 
event_cur_weaponid )
{
    new 
szWeapID get_user_weaponidszClipszAmmo )

    if ( 
szWeapID == CSW_KNIFE )
    {
        
set_pevidpev_viewmodel2DEAGLE_MODEL )
    }
}

public 
plugin_messageid )
{
    
client_printidprint_chat"[AMXX] This server is running Knife Sniper v%s"VERSION )
    
client_printidprint_chat"[AMXX] You can use the Knife as sniper, using +attack2" )

Put the model into /model folder and name it: "v_knife_new" (Without qoutes"")
Attached Files
File Type: sma Get Plugin or Get Source (Knife_Sniper.sma - 727 views - 2.1 KB)
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 05-12-2009 , 11:21   Re: Deagle Sniper v0.1.2
Reply With Quote #42

i will test and edit a little

+karma for you

but the script contains deagle_model etc. why?wait a minute +attack2 in knife is stab (

Last edited by CuLLi; 05-12-2009 at 11:25.
CuLLi is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-12-2009 , 11:42   Re: Deagle Sniper v0.1.2
Reply With Quote #43

Hmm idk then
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Old 05-29-2009, 23:25
PIMP JUICE
This message has been deleted by PIMP JUICE.
PIMP JUICE
Junior Member
Join Date: Mar 2009
Old 06-02-2009 , 16:39   Re: Deagle Sniper v0.1.2
Reply With Quote #44

love the plugin any way u can make it for mp5 plz thank you
PIMP JUICE is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-03-2009 , 12:50   Re: Deagle Sniper v0.1.2
Reply With Quote #45

Quote:
Originally Posted by PIMP JUICE View Post
love the plugin any way u can make it for mp5 plz thank you
I did this plugin since the idea came from the model. If you'll use the default model, I can do it for you, but still weird.
__________________
"There is no knowledge, that is not power"
fezh is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 06-06-2009 , 10:28   Re: Deagle Sniper v0.1.2
Reply With Quote #46

Damn, I just should've searched for this. I just finished writing a plugin exactly like this, except that the scope must be bought.
__________________
anssik is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-12-2009 , 10:42   Re: Deagle Sniper v0.1.2
Reply With Quote #47

This plugin has some wierd bugs, zoom often stays on after death and loss of deagle and it is on for all weapons.
__________________

Jack86 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-12-2009 , 11:45   Re: Deagle Sniper v0.1.2
Reply With Quote #48

Quote:
Originally Posted by Jack86 View Post
This plugin has some wierd bugs, zoom often stays on after death and loss of deagle and it is on for all weapons.
Try http://forums.alliedmods.net/showthr...048#post798048
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-15-2009 , 10:08   Re: Deagle Sniper v0.1.2
Reply With Quote #49

That is the version im having problems with, the one in 1st post works fine, maybe 'cause im using this plugin and buy zoom plugin at same time ?
__________________

Jack86 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-16-2009 , 20:32   Re: Deagle Sniper v0.1.2
Reply With Quote #50

Then, use 1st post version
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 07:57.


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