AeroAcrobat
03-22-2013, 05:57
not sure if this should stay here on in scripting forum but its ff related.
I'd like to block kill and explode commands in freak fortress but only after the round has started. Not while players can still switch classes and after round end.
this is currently working but it blocks the commands all the time.
code is from: [TF2] Deathrun v1.2.1 (https://forums.alliedmods.net/showthread.php?t=201623)
public OnPluginStart()
{
AddCommandListener(BlockCommand, "kill");
AddCommandListener(BlockCommand, "explode");
}
/// Small userful thingy from cs:s deathrun manager made by Rogue plugin
public Action:BlockCommand(client, const String:command[], args) // Blocks use of commands USED FOR kill & explode things
{
return Plugin_Handled; // blocks command
}
I'd like to block kill and explode commands in freak fortress but only after the round has started. Not while players can still switch classes and after round end.
this is currently working but it blocks the commands all the time.
code is from: [TF2] Deathrun v1.2.1 (https://forums.alliedmods.net/showthread.php?t=201623)
public OnPluginStart()
{
AddCommandListener(BlockCommand, "kill");
AddCommandListener(BlockCommand, "explode");
}
/// Small userful thingy from cs:s deathrun manager made by Rogue plugin
public Action:BlockCommand(client, const String:command[], args) // Blocks use of commands USED FOR kill & explode things
{
return Plugin_Handled; // blocks command
}