Raised This Month: $ Target: $400
 0% 

Deagle Sniper v0.1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Yano
Junior Member
Join Date: Jul 2009
Old 07-19-2009 , 14:59   Re: Deagle Sniper v0.1.2
Reply With Quote #51

How do I get only ADMs and VIPs that have deagle?
Yano is offline
Send a message via MSN to Yano
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-19-2009 , 15:24   Re: Deagle Sniper v0.1.2
Reply With Quote #52

Try this...
Code:
/* AMX Mod script * * (c) 2009, fezh * This file is provided as is (no warranties). * */ #include <amxmodx> #include <cstrike> #include <fakemeta> #include <amxmisc> // Plugin Stats #define PLUGIN "Deagle Sniper" #define VERSION "0.1.2" #define AUTHOR "fezh" // Deagle Custom Model new DEAGLE_MODEL[ 64 ] = "models/v_deagle_new.mdl" // Zoom Array new g_hasZoom[ 33 ] // Misc Stuff new szClip, szAmmo public plugin_init() {     // Register Plugin     register_plugin( PLUGIN, VERSION, AUTHOR )         // Check Current Weapon     register_event( "CurWeapon", "event_cur_weapon", "be", "1=1" )     // Command Start     register_forward( FM_CmdStart, "forward_cmdstart" )     // Plugin Version     register_cvar( "deagle_sniper", VERSION, FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY ) } public plugin_precache() {     precache_model( DEAGLE_MODEL ) } public client_putinserver( id ) {     set_task( 20.0, "plugin_message", id ) } public forward_cmdstart( id, uc_handle, seed ) {     if( !is_user_alive( id ) || !is_user_admin(id))         return PLUGIN_HANDLED         if( ( get_uc( uc_handle, UC_Buttons ) & IN_ATTACK2 ) && !( pev( id, pev_oldbuttons ) & IN_ATTACK2 ) )     {         new szWeapID = get_user_weapon( id, szClip, szAmmo )         if( szWeapID == CSW_DEAGLE && !g_hasZoom[ id ] )         {             g_hasZoom[ id ] = true             cs_set_user_zoom( id, CS_SET_FIRST_ZOOM, 1 )             emit_sound( id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100 )         }         else         {    if( g_hasZoom[ id ] )             {                 g_hasZoom[ id ] = false                 cs_set_user_zoom( id, CS_RESET_ZOOM, 0 )             }         }         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED } public event_cur_weapon( id ) {     new szWeapID = get_user_weapon( id, szClip, szAmmo )     if ( szWeapID == CSW_DEAGLE )     {         set_pev( id, pev_viewmodel2, DEAGLE_MODEL )     } } public plugin_message( id ) {     client_print( id, print_chat, "[AMXX] This server is running Deagle Sniper v%s", VERSION )     client_print( id, print_chat, "[AMXX] You can use the Deagle as sniper, using +attack2" ) }
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Yano
Junior Member
Join Date: Jul 2009
Old 07-19-2009 , 15:48   Re: Deagle Sniper v0.1.2
Reply With Quote #53

It was not :/
Yano is offline
Send a message via MSN to Yano
ThekillerNice
Junior Member
Join Date: Jul 2009
Location: surf_ski2
Old 07-19-2009 , 17:54   Re: Deagle Sniper v0.1.2
Reply With Quote #54

Nice, Ps, See up
__________________


ThekillerNice is offline
Yano
Junior Member
Join Date: Jul 2009
Old 07-20-2009 , 13:32   Re: Deagle Sniper v0.1.2
Reply With Quote #55

Thank you man.
Where can I find tutorial to create plugins?
Yano is offline
Send a message via MSN to Yano
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-20-2009 , 19:30   Re: Deagle Sniper v0.1.2
Reply With Quote #56

we'll first you can start off with amxmodx wiki and the documentation and study each one if you'd like, or start looking at basic plugins and learn from there
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 07-21-2009 , 15:48   Re: Deagle Sniper v0.1.2
Reply With Quote #57

Problem: Shoot 7 bullets in zoom mode > The weapon will auto-reload (obviously) But the ZOOM REMAINS.
Costin83 is offline
Send a message via Yahoo to Costin83
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-21-2009 , 16:14   Re: Deagle Sniper v0.1.2
Reply With Quote #58

Quote:
Originally Posted by Costin83 View Post
Problem: Shoot 7 bullets in zoom mode > The weapon will auto-reload (obviously) But the ZOOM REMAINS.
Yeah, I knew that when I released the plugin. Yep, it's possible fix it, but anyways when you press "R" (or your +reload key, instead) the zoom will dissapear, if you have less than 7 bullets or not.
__________________
"There is no knowledge, that is not power"
fezh is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 07-21-2009 , 18:28   Re: Deagle Sniper v0.1.2
Reply With Quote #59

Quote:
Originally Posted by fezh View Post
Yeah, I knew that when I released the plugin. Yep, it's possible fix it, but anyways when you press "R" (or your +reload key, instead) the zoom will dissapear, if you have less than 7 bullets or not.
So... will you fix it, so it will act like a normal sniper gun ?



Btw, I wouldn't mind to get one scope for some cash... (like the "buy_zoom" plugin) and loosing it when I'm dead (not at the round end).
I can provide you some models:
You can choose if you want to use a model with a scope sub-model or two different models.
Attached Thumbnails
Click image for larger version

Name:	deagle.JPG
Views:	196
Size:	8.0 KB
ID:	45872  
Attached Files
File Type: zip v_deagle_new_blank_scope.zip (789.8 KB, 152 views)
File Type: zip v_deagle_new_scope.zip (789.6 KB, 156 views)
File Type: zip v_deagle_new_scope_blank.zip (789.8 KB, 120 views)
File Type: zip v_deagle_new_simple.zip (487.2 KB, 159 views)

Last edited by Costin83; 07-21-2009 at 18:53.
Costin83 is offline
Send a message via Yahoo to Costin83
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-21-2009 , 18:34   Re: Deagle Sniper v0.1.2
Reply With Quote #60

Quote:
Originally Posted by Costin83 View Post
So... will you fix it, so it will act like a normal sniper gun ?

Yeah, I will update the plugin soon.. Maybe today or tomorrow
__________________
"There is no knowledge, that is not power"
fezh 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 06:06.


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