Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward FirstAidUpdate(playerid);
- public FirstAidUpdate(playerid)
- {
- static
- Float:health;
- GetPlayerHealth(playerid, health);
- if (!IsPlayerInAnyVehicle(playerid) && GetPlayerAnimationIndex(playerid) != 1508)
- ApplyAnimation(playerid, "SWAT", "gnstwall_injurd", 4.0, 1, 0, 0, 0, 0);
- if (health >= 95.0)
- {
- SetPlayerHealth(playerid, 100.0);
- SendServerMessage(playerid, "Your first aid kit has been used up.");
- if (!IsPlayerInAnyVehicle(playerid)) {
- PlayerData[playerid][pLoopAnim] = true;
- ShowPlayerFooter(playerid, "Press ~y~SPRINT~w~ to stop the animation.");
- }
- PlayerData[playerid][pBleeding] = 0;
- PlayerData[playerid][pBleedTime] = 0;
- PlayerData[playerid][pFirstAid] = false;
- KillTimer(PlayerData[playerid][pAidTimer]);
- }
- else {
- SetPlayerHealth(playerid, floatadd(health, 4.0));
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment