Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #pragma semicolon 1
- public Plugin:myinfo =
- {
- name = "Radar Kill",
- author = "]HeLL[ Clan",
- description = "Radar kill spammer",
- version = "1.0",
- url = "https://hellclan.co.uk/"
- }
- public void OnPluginStart()
- {
- CreateTimer(0.1, KillRadar, _, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);
- }
- public Action:KillRadar(Handle:timer)
- {
- for (new i = 1; i <= MaxClients; i++)
- {
- if(IsClientInGame(i))
- {
- if(GetClientTeam(i) >= 2 || IsPlayerAlive(i))
- {
- Client_HideRadar(i);
- ClientCommand (i, "hideradar");
- // this might cause it to return early and not block every client?
- //return Plugin_Continue;
- }
- }
- }
- // so do the return by here...
- return Plugin_Continue;
- }
- Client_HideRadar(client)
- {
- SetEntPropFloat(client, Prop_Send, "m_flFlashDuration", 3600.0);
- SetEntPropFloat(client, Prop_Send, "m_flFlashMaxAlpha", 0.5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement