Small fix in voice.inc to stop changing voice permissions with a client's self.

Added the API functions for shoppinglist.inc but they don't do anything, they are just a sneak-peak into the way it will work, any feedback on your opinion would be nice.
This commit is contained in:
Greyscale
2009-08-30 11:47:01 -07:00
parent 1f09e1d0c7
commit f4eb06d210
3 changed files with 116 additions and 0 deletions

View File

@ -167,6 +167,12 @@ stock VoiceSetClientTeam(client, bool:zombie)
continue;
}
// No need to alter listening/speaking flags between one client.
if (client == x)
{
continue;
}
// Client can only listen/speak if the sender is on their team.
new bool:canlisten = (zombie == InfectIsClientInfected(x));