Raised This Month: $32 Target: $400
 8% 

[REQ] Small noscope Awp plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 10-20-2016 , 14:02   [REQ] Small noscope Awp plugin
Reply With Quote #1

This plugin i'm requesting should be simple i'm guessin, I dunno, so when you no scope someone with an awp you'll here a sound like eagleye.mp3 and text in game that says player just got a noscope on player! I figured its like giving credit to the noscope shots which aren't easy to get. Thanks for everything you guys do. And no I'm not an awper, not that there's anything wrong with them... :p
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-20-2016 , 21:11   Re: [REQ] Small noscope Awp plugin
Reply With Quote #2

Quote:
Originally Posted by FR0NTLINE View Post
This plugin i'm requesting should be simple i'm guessin, I dunno, so when you no scope someone with an awp you'll here a sound like eagleye.mp3 and text in game that says player just got a noscope on player! I figured its like giving credit to the noscope shots which aren't easy to get. Thanks for everything you guys do. And no I'm not an awper, not that there's anything wrong with them... :p
I wrote this a long time ago
https://forums.alliedmods.net/showpo...25&postcount=6

With added sound on no scope. HUD displays to all players, sound only players to killer (no scoper).
PHP Code:

#include <amxmodx>
#include <cstrike>
#include <fun>

new const Version[] = "0.1";

const 
MaxPlayers 32;

new const 
szSoundFile[] = "radio/enemydown.wav";

new 
g_iCurrentZoomMaxPlayers ];
new 
g_pCvarKillPoints;

public 
plugin_init() 
{
    
register_plugin"No Scope Announce" Version "bugsy" );
    
    
register_event"DeathMsg" "fw_EvDeathMsg" "a" "1>0" "4=awp" );
    
register_event"CurWeapon" "fw_EvCurWeapon" "b" "1=1" "2=18" );
    
    
g_pCvarKillPoints register_cvar"ns_killpoints" "2" );
}

public 
plugin_precache()
{
    
precache_soundszSoundFile );
}

public 
fw_EvDeathMsg()
{
    static 
iKiller szName33 ]; 
    
    
iKiller read_data);
    
    if ( 
is_user_connectediKiller ) && ( g_iCurrentZoomiKiller ] == CS_SET_NO_ZOOM ) )
    {
        
get_user_nameiKiller szName charsmaxszName ) );
        
set_hudmessage85 212 255 , -1.0 0.38 2.0 5.0 0.0 0.0 , -);
        
        
client_cmd"spk %s" szSoundFile )
        
show_hudmessage"%s just did a scopeless kill shot!" szName );
        
        
set_user_fragsiKiller get_user_fragsiKiller ) + ( get_pcvar_numg_pCvarKillPoints ) - ) );
    }
}

public 
fw_EvCurWeaponid )
{
    
g_iCurrentZoomid ] = cs_get_user_zoomid );

__________________

Last edited by Bugsy; 10-21-2016 at 08:51.
Bugsy is online now
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 10-20-2016 , 21:52   Re: [REQ] Small noscope Awp plugin
Reply With Quote #3

oh hell yeah awesome bro, I would of looked, but figured I had a new idea! DUH, you think you could edit this and make it so all players can hear the wav sound or mp3? Thanks much appreciated.
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-21-2016 , 07:00   Re: [REQ] Small noscope Awp plugin
Reply With Quote #4

Done. The killer also gets a kill bonus defined by cvar, FYI.
__________________
Bugsy is online now
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 10-21-2016 , 12:55   Re: [REQ] Small noscope Awp plugin
Reply With Quote #5

You just made a new friend. Now to see the surprise bonus!!!!! Thanks a million 0.G.Bugsy.

unknown unknown unknown noscope.amxx bad load
__________________

Last edited by FR0NTLINE; 10-21-2016 at 14:29. Reason: error
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Reply


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 23:10.


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