AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block any scoping (https://forums.alliedmods.net/showthread.php?t=113161)

Toastt 12-24-2009 00:09

Block any scoping
 
scout
awp
auto sniper
etc... any gun with scope
whats the code to block it?
i want to put this in my /lr menu

Hasler 12-25-2009 04:32

Re: Block any scoping
 
for buy..

PHP Code:

#include <amxmodx>

new bool:asd[33]

new 
SzBlock[][] = { "scout""awp""g3sg1" }

public 
plugin_init() {
    
register_plugin("blockbuy""1.5""...")
    
    for (new 
isizeof SzBlocki++)
      
register_clcmd(SzBlock[i], "Block"
}

public 
Block(id)
{
    if(
asd[id] == true)
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE




All times are GMT -4. The time now is 04:14.

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