Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward Freeze(playerid);
- forward ApplyAnim(playerid);
- public OnPlayerSpawn(playerid)
- {
- SetTimerEx("Freeze", 1000, true, "i", playerid);
- SetTimerEx("ApplyAnim", 4000, true, "i", playerid);
- return 1;
- }
- public Freeze(playerid)
- {
- new Float:health;
- GetPlayerHealth(playerid,health);
- if (health < 30.0)
- TogglePlayerControllable(playerid, 0);
- return 1;
- }
- public ApplyAnim(playerid)
- {
- new Float:health;
- GetPlayerHealth(playerid,health);
- if (health < 30.0)
- {
- ApplyAnimation(playerid,"PED","crckdeth2",2.1,1,1,1,1,1,1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment