Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- if(IsTeamGame())
- {
- if((GetPlayerTeam(playerid) != GetPlayerTeam(issuerid)))
- {
- Round[issuerid][Damage]+=amount;
- PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
- }
- }
- else
- {
- Round[issuerid][Damage]+=amount;
- PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
- }
- }
- Round[playerid][Taken]+=amount;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment