Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.01 KB | None | 0 0
  1. #include <sourcemod>
  2.  
  3. #pragma semicolon 1
  4.  
  5. public Plugin:myinfo =
  6. {
  7.     name = "Radar Kill",
  8.     author = "]HeLL[ Clan",
  9.     description = "Radar kill spammer",
  10.     version     = "1.0",
  11.     url = "https://hellclan.co.uk/"
  12. }
  13.  
  14. public void OnPluginStart()
  15. {
  16.     CreateTimer(0.1, KillRadar, _, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);
  17. }
  18.  
  19. public Action:KillRadar(Handle:timer)
  20. {
  21.     for (new i = 1; i <= MaxClients; i++)
  22.     {
  23.         if(IsClientInGame(i))
  24.         {
  25.             if(GetClientTeam(i) >= 2 || IsPlayerAlive(i))
  26.             {
  27.                 Client_HideRadar(i);
  28.                 ClientCommand (i, "hideradar");
  29.                 // this might cause it to return early and not block every client?
  30.                 //return Plugin_Continue;
  31.             }
  32.         }
  33.     }
  34.    
  35.     // so do the return by here...
  36.     return Plugin_Continue;
  37. }
  38.  
  39. Client_HideRadar(client)
  40. {
  41.     SetEntPropFloat(client, Prop_Send, "m_flFlashDuration", 3600.0);
  42.     SetEntPropFloat(client, Prop_Send, "m_flFlashMaxAlpha", 0.5);
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement