AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fixing abandoned DoD no-scope plugin (https://forums.alliedmods.net/showthread.php?t=277908)

OG_Algier 01-20-2016 00:22

Fixing abandoned DoD no-scope plugin
 
1 Attachment(s)
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?

fysiks 01-20-2016 00:54

Re: Fixing abandoned DoD no-scope plugin
 
Wow, you posted in the plugin's thread less than an hour before posting here . . . forums aren't instant gratification services. Give a post some time.

I responded to your post over there.

OG_Algier 01-20-2016 01:38

Re: Fixing abandoned DoD no-scope plugin
 
Dodplugins.net isn't very active, the last post in their script help subforum is from 2013 and the last post in that thread is from 2010. I doubt that anyone will help me out over there.

Edit: Didn't see your post over there. Thanks, I'll try it out. I also replied to you on the other site.


All times are GMT -4. The time now is 09:23.

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