Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Action Hook_OnTakeDamage(int client, &attacker, &inflictor, &Float:damage, &damagetype)
- {
- if(GetClientTeam(attacker) == 2 && IsValidClient(attacker) && GetClientTeam(client) == 3 && IsValidClient(client) && attacker != client)
- {
- if(attack_timer == INVALID_HANDLE)
- {
- for(int x = 1; x <= MaxClients; x++)
- {
- if(IsClientInGame(x))
- {
- ClientCommand( x, "play \"*xsag/jbgo/jbgo_alarma.wav\"" );
- }
- }
- SetEntityRenderColor(attacker, 255, 0, 0, 255);
- PrintCenterTextAll("%N a devenit agresiv", attacker);
- attack_timer = CreateTimer(6.0, AttackTimerEnd);
- }
- }
- else if(g_Godmode[client])
- {
- damage = 0.0;
- return Plugin_Changed;
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement