add EnableTroll

This commit is contained in:
Jackzie 2021-09-23 14:21:12 -05:00
parent 72cac56b1a
commit 2c9f8d5077
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 10 additions and 5 deletions

View file

@ -198,6 +198,12 @@ bool IsTrollActive(int client, const char[] troll) {
return false; //errors instead but compiler no like
}
void EnableTroll(int client, const char[] troll) {
if(!IsTrollActive(client, troll)) {
ToggleTroll(client, troll);
}
}
void DisableTroll(int client, const char[] troll) {
if(IsTrollActive(client, troll)) {
ToggleTroll(client, troll);