Guest User

Untitled

a guest
May 11th, 2010
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. timer - dyingfucking[playerid] = SetTimerEx("Dying",600,1,"i",playerid);
  2.  
  3. if(PlayerInfo[playerid][Spawn] == 1 && PlayerInfo[playerid][OnFloor] == 1)
  4. {
  5. SetPlayerHealth(playerid, 100);
  6. SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("pSkin"));
  7. SetPlayerPos(playerid,PlayerInfo[playerid][dx], PlayerInfo[playerid][dy], PlayerInfo[playerid][dz]);
  8. SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
  9. SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
  10. SetPlayerWalkingStyle(playerid, 0);
  11. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFStyle]);
  12. SetPlayerFacingAngle(playerid, 270.0000);
  13. SetCameraBehindPlayer(playerid);
  14. EndFadeScreen(playerid);
  15. ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
  16. ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
  17. SendClientMessage(playerid, COLOR_YELLOW2, "You are suffering a total body shutdown, You will die shortly without medical assistance.");
  18. dyingfucking[playerid] = SetTimerEx("Dying",600,1,"i",playerid);
  19. return 1;
  20. }
  21.  
  22. else if(PlayerInfo[playerid][Spawn] == 1 && PlayerInfo[playerid][OnFloor] == 3) {
  23. SetPlayerHealth(playerid, 100);
  24. SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("pSkin"));
  25. SetPlayerPos(playerid,2026.8677,1007.8913,10.8203);
  26. SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
  27. SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
  28. SetPlayerWalkingStyle(playerid, PlayerInfo[playerid][pWStyle]);
  29. SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFStyle]);
  30. SetPlayerFacingAngle(playerid, 270.0000);
  31. SetCameraBehindPlayer(playerid);
  32. EndFadeScreen(playerid);
  33. PlayerInfo[playerid][OnFloor] = 0;
  34. SendClientMessage(playerid, COLOR_YELLOW2, "You have been cloned by the Technological Research Bureau. Welcome back to Oneiric City.");
  35. return 1;
  36. }
  37.  
  38. fpublic Dying(playerid)
  39. {
  40. new Float:health;
  41. GetPlayerHealth(playerid,health);
  42.  
  43. if(health == 1) {
  44. KillTimer(dyingfucking[playerid]);
  45. PlayerInfo[playerid][OnFloor] = 3;
  46. SpawnPlayer(playerid); }
  47. else {
  48. SetPlayerHealth(playerid,health-1);
  49. }
  50. return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment