Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.71 KB | None | 0 0
  1. public Action Hook_OnTakeDamage(int client, &attacker, &inflictor, &Float:damage, &damagetype)
  2. {
  3.     if(GetClientTeam(attacker) == 2 && IsValidClient(attacker) && GetClientTeam(client) == 3 && IsValidClient(client) && attacker != client)
  4.     {
  5.         if(attack_timer == INVALID_HANDLE)
  6.         {
  7.             for(int x = 1; x <= MaxClients; x++)
  8.             {
  9.                 if(IsClientInGame(x))
  10.                 {
  11.                     ClientCommand( x, "play \"*xsag/jbgo/jbgo_alarma.wav\"" );
  12.                 }
  13.             }  
  14.             SetEntityRenderColor(attacker, 255, 0, 0, 255);
  15.             PrintCenterTextAll("%N a devenit agresiv", attacker);
  16.             attack_timer = CreateTimer(6.0, AttackTimerEnd);
  17.         }
  18.     }
  19.     else if(g_Godmode[client])
  20.     {
  21.         damage = 0.0;
  22.         return Plugin_Changed;
  23.     }
  24.  
  25.     return Plugin_Continue;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement