AlliedModders

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

FiFiX 05-11-2010 09:59

Block nades
 
Hello, I'm wondering if it is possible to block just nades on restart round. I've got code for RR, but have no idea how to block nades ;p

Exolent[jNr] 05-11-2010 13:02

Re: Block nades
 
What do you mean by "block" grenades?

FiFiX 05-12-2010 13:47

Re: Block nades
 
Mhm, just block using them ;]

Bugsy 05-12-2010 13:56

Re: Block nades
 
block purchase, block damage from, block throwing?

Explain what you want.

FiFiX 05-12-2010 13:59

Re: Block nades
 
The way doesn't matter but I think the best will be to block purchase ;p

Brreaker 05-21-2010 15:53

Re: Block nades
 
PHP Code:

new gCvarPluginToggle
new gBuyCommands[][] =  

"hegren"
}
public 
plugin_init() {
    
gCvarPluginToggle register_cvar("only_block""1")
    for (new 
isizeof gBuyCommandsi++) {
        
register_clcmd(gBuyCommands[i], "BlockBuyCommands")
    }
}
public 
BlockBuyCommands(id) { 
    if (!
get_pcvar_num(gCvarPluginToggle)) {
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_HANDLED


Try this one :)


All times are GMT -4. The time now is 03:40.

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