Raised This Month: $ Target: $400
 0% 

Fixing abandoned DoD no-scope plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OG_Algier
New Member
Join Date: Jan 2016
Old 01-20-2016 , 00:22   Fixing abandoned DoD no-scope plugin
Reply With Quote #1

In Syn's No Scope Notifier v2.001 plugin the scope blocking feature has no longer worked for over 5 years now. The developer doesn't seem to be active anymore so I thought I'd get some help in fixing this plugin.

This seems to be the section that is broken:
Code:
        // Block scoped shots
        if(get_pcvar_num(pntr_notify_block_scope) && players_zoomed[id] > 0)
        {
                new morenill,morenull
                new wpnindex = get_user_weapon(id,morenill,morenull)

                switch(wpnindex) {
                        case 6,9,35: {
                                if(pev(id,pev_button) & IN_ATTACK && pev(id,pev_oldbuttons) & IN_ATTACK)
                                {
                                        if (get_pcvar_num(pntr_notify) && get_pcvar_num(pntr_notify_block_notify))
                                        {
                                                set_hudmessage(255,255,255, -1.0, 0.32, 2, 0.02,5.0, 0.01, 0.1, 2)
                                                show_hudmessage(id,"No Scope mod is running! All shots are blocked while$
                                                set_pev(id, pev_button,pev(id,pev_button) & ~IN_ATTACK)
                                        }
                                }
                        }
                }
        }
I've attached the full source below. Can anyone help me find out what is wrong with this plugin?
Attached Files
File Type: sma Get Plugin or Get Source (syns_no_scope_notifier_v2.001.sma - 571 views - 66.4 KB)
OG_Algier is offline
 



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


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