Skip to content

Instantly share code, notes, and snippets.

@ArKaNeMaN
Created June 6, 2023 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArKaNeMaN/a5607b74e991646fb0754e7dd8ba3a0c to your computer and use it in GitHub Desktop.
Save ArKaNeMaN/a5607b74e991646fb0754e7dd8ba3a0c to your computer and use it in GitHub Desktop.
#include <amxmodx>
#include <map_manager>
#include <VipModular>
new const LIMIT_NAME[] = "MMM-VoteStarted";
public VipM_OnInitModules() {
register_plugin("[VipM-I] Map Manager Modular", "1.0.0", "ArKaNeMaN");
VipM_Limits_RegisterType(LIMIT_NAME, false, true);
}
public mapm_vote_started() {
VipM_Limits_SetStaticValue(LIMIT_NAME, true);
}
public mapm_vote_canceled() {
VipM_Limits_SetStaticValue(LIMIT_NAME, false);
}
public mapm_vote_finished() {
VipM_Limits_SetStaticValue(LIMIT_NAME, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment