mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 05:43:21 +00:00
add EnableTroll
This commit is contained in:
parent
72cac56b1a
commit
2c9f8d5077
2 changed files with 10 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue