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/"
- }
- new Handle:Player_Timers[MAXPLAYERS];
- public OnPluginStart()
- {
- HookEventEx("player_spawn", Player_Spawn);
- }
- public Player_Spawn(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- if(Player_Timers[client] != INVALID_HANDLE)
- {
- KillTimer(Player_Timers[client]);
- Player_Timers[client] = INVALID_HANDLE;
- }
- if(GetClientTeam(client) >= 2)
- {
- Player_Timers[client] = CreateTimer(0.1, KillRadar, client, TIMER_REPEAT);
- }
- }
- public Action:KillRadar(Handle:timer, any:client)
- {
- if(!IsClientInGame(client) || GetClientTeam(client) <= 1 || !IsPlayerAlive(client))
- {
- Player_Timers[client] = INVALID_HANDLE;
- return Plugin_Stop;
- }
- Client_HideRadar(client);
- 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