Scrumilation
10-07-2014, 21:40
Original post on the wrong board:
I am having some problems with this code:
Code:
...
AddCommandListener(BlockKill, "kill");
...
public Action:BlockKill(client, const String:command[], args)
{
if (GetConVarInt(deathrun_enabled) == 1 && (GetConVarInt(deathrun_block_suicide) == 1))
{
PrintToChat(client, MESS, "kill blocked");
PrintToChat(client, MESS, "join spec");
return Plugin_Handled;
}
return Plugin_Continue;
}
This is from the Deathrun Mod plugin, I am currently trying to fix it but nothing seems to work, I even tried to return Plugin_Stop but the user still suicides.
New info: Ok so after posting that on the wrong place i decided to do another test, i changed the second plugin_ thing to plugin_handled and now it works, i don't really know what is going on, after the first print the if statement just ends and it goes to the rest of the code which is the plugin_continue? Is this a problem with sourcemod or is the code wrong?
I am having some problems with this code:
Code:
...
AddCommandListener(BlockKill, "kill");
...
public Action:BlockKill(client, const String:command[], args)
{
if (GetConVarInt(deathrun_enabled) == 1 && (GetConVarInt(deathrun_block_suicide) == 1))
{
PrintToChat(client, MESS, "kill blocked");
PrintToChat(client, MESS, "join spec");
return Plugin_Handled;
}
return Plugin_Continue;
}
This is from the Deathrun Mod plugin, I am currently trying to fix it but nothing seems to work, I even tried to return Plugin_Stop but the user still suicides.
New info: Ok so after posting that on the wrong place i decided to do another test, i changed the second plugin_ thing to plugin_handled and now it works, i don't really know what is going on, after the first print the if statement just ends and it goes to the rest of the code which is the plugin_continue? Is this a problem with sourcemod or is the code wrong?