Guest User

Untitled

a guest
Aug 12th, 2011
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. forward Freeze(playerid);
  2. forward ApplyAnim(playerid);
  3.  
  4. public OnPlayerSpawn(playerid)
  5. {
  6. SetTimerEx("Freeze", 1000, true, "i", playerid);
  7. SetTimerEx("ApplyAnim", 4000, true, "i", playerid);
  8. return 1;
  9. }
  10.  
  11. public Freeze(playerid)
  12. {
  13. new Float:health;
  14. GetPlayerHealth(playerid,health);
  15. if (health < 30.0)
  16. TogglePlayerControllable(playerid, 0);
  17. return 1;
  18. }
  19.  
  20. public ApplyAnim(playerid)
  21. {
  22. new Float:health;
  23. GetPlayerHealth(playerid,health);
  24. if (health < 30.0)
  25. {
  26. ApplyAnimation(playerid,"PED","crckdeth2",2.1,1,1,1,1,1,1);
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment