ftt: Added flag code for honk

This commit is contained in:
Jackzie 2021-10-13 20:37:08 -05:00
parent f075617d12
commit a5a3c715ec
No known key found for this signature in database
GPG key ID: 1E834FE36520537A

View file

@ -161,7 +161,16 @@ public Action OnClientSayCommand(int client, const char[] command, const char[]
int length = 7 * words;
char[] message = new char[length];
ImplodeStrings(strings, 32, " ", message, length);
CPrintToChatAll("{blue}%N {default}: %s", client, message);
if(Trolls[honkID].activeFlagClients[client] & 1)
CPrintToChatAll("{blue}%N {default}: %s", client, message);
else {
CPrintToChat(client, "{blue}%N {default}: %s", client, message);
for(int i = 1; i <= MaxClients; i++) {
if(IsClientConnected(i) && IsClientInGame(i) && i != client) {
CPrintToChat(i, "{blue}%N {default}: %s", client, message);
}
}
}
PrintToServer("%N: %s", client, sArgs);
return Plugin_Handled;
} else if(IsTrollActive(client, "Reversed")) {