Franc1sco

Untitled

Jul 10th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. public OnClientPostAdminCheck(client)
  5. {
  6. if (!GetAdminFlag(GetUserAdmin(client), Admin_Chat))
  7. {
  8. for (new i = 1; i < MaxClients; i++)
  9. if(IsClientInGame(i) && i != client && GetAdminFlag(GetUserAdmin(i), Admin_Chat))
  10. SetListenOverride(client, i, Listen_Yes);
  11. }
  12. else
  13. {
  14. for (new i = 1; i < MaxClients; i++)
  15. if(IsClientInGame(i) && i != client)
  16. SetListenOverride(i, client, Listen_Yes);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment