Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
- {
- if(damaged_actorid == ACTOR_CITYHALL_SECUTIRY[0] && IsValidActor(ACTOR_CITYHALL_SECUTIRY[0]) || damaged_actorid == ACTOR_CITYHALL_SECUTIRY[1] && IsValidActor(ACTOR_CITYHALL_SECUTIRY[1]))
- {
- SetActorHealth(ACTOR_CITYHALL_SECUTIRY[0], 100);
- SetActorHealth(ACTOR_CITYHALL_SECUTIRY[1], 100);
- if(CANT_STOP_ANIMATION[playerid] == -1)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1495.4327,-1786.7675,13.5349)) //actor 0
- {
- new Float: Health;
- GetPlayerHealth(playerid, Health);
- SafeSetPlayerHealth(playerid, Health-10);
- ApplyActorAnimation(ACTOR_CITYHALL_SECUTIRY[0], "FIGHT_D","FightD_3", 4.1, 0, 0, 0, 0, 1000);
- ACTOR_KNOCK_TIMER[playerid] = SetTimerEx("ClearActorKnock", 5000, false, "i", playerid);
- CANT_STOP_ANIMATION[playerid] = 1;
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
- SendClientMessage(playerid, -1, "Pokusali ste napasti security lice, oboreni ste 5 sekundi.");
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1491.7644,-1790.2700,13.5349)) //actor 1
- {
- new Float: Health;
- GetPlayerHealth(playerid, Health);
- SafeSetPlayerHealth(playerid, Health-10);
- ApplyActorAnimation(ACTOR_CITYHALL_SECUTIRY[1], "FIGHT_D","FightD_3", 4.1, 0, 0, 0, 0, 1000);
- ACTOR_KNOCK_TIMER[playerid] = SetTimerEx("ClearActorKnock", 5000, false, "i", playerid);
- CANT_STOP_ANIMATION[playerid] = 1;
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
- SendClientMessage(playerid, -1, "Pokusali ste napasti security lice, oboreni ste 5 sekundi.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement