Face9000

[Face9000] Hit Sound

Sep 13th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.70 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2. {
  3.         if(issuerid != INVALID_PLAYER_ID)
  4.         {
  5.                 if(IsTeamGame())
  6.                 {
  7.                         if((GetPlayerTeam(playerid) != GetPlayerTeam(issuerid)))
  8.                         {
  9.                             Round[issuerid][Damage]+=amount;
  10.                             PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
  11.                         }
  12.                 }
  13.                 else
  14.                 {
  15.                     Round[issuerid][Damage]+=amount;
  16.                     PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
  17.                 }
  18.         }
  19.         Round[playerid][Taken]+=amount;
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment