This plugin should stop terrorists from planting C4 when being alone in server. Please, help to solve it. Short code of a plugin:
PHP Code:
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("C4_Block", "1.0", "SNauPeR");
RegisterHookChain(RG_CSGameRules_GiveC4, "CSGameRules_GiveC4_Pre");
}
public CSGameRules_GiveC4_Pre() {
new Players[32], Count;
get_players(Players, Count, "ach");
if(Count < 3) {
client_print_color(0, print_team_red, "C4 is blocked until more players join.");
return HC_SUPERCEDE;
}
return HC_CONTINUE;
}
Error message: