Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timer - dyingfucking[playerid] = SetTimerEx("Dying",600,1,"i",playerid);
- if(PlayerInfo[playerid][Spawn] == 1 && PlayerInfo[playerid][OnFloor] == 1)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("pSkin"));
- SetPlayerPos(playerid,PlayerInfo[playerid][dx], PlayerInfo[playerid][dy], PlayerInfo[playerid][dz]);
- SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
- SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
- SetPlayerWalkingStyle(playerid, 0);
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFStyle]);
- SetPlayerFacingAngle(playerid, 270.0000);
- SetCameraBehindPlayer(playerid);
- EndFadeScreen(playerid);
- ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
- ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
- SendClientMessage(playerid, COLOR_YELLOW2, "You are suffering a total body shutdown, You will die shortly without medical assistance.");
- dyingfucking[playerid] = SetTimerEx("Dying",600,1,"i",playerid);
- return 1;
- }
- else if(PlayerInfo[playerid][Spawn] == 1 && PlayerInfo[playerid][OnFloor] == 3) {
- SetPlayerHealth(playerid, 100);
- SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("pSkin"));
- SetPlayerPos(playerid,2026.8677,1007.8913,10.8203);
- SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
- SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
- SetPlayerWalkingStyle(playerid, PlayerInfo[playerid][pWStyle]);
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFStyle]);
- SetPlayerFacingAngle(playerid, 270.0000);
- SetCameraBehindPlayer(playerid);
- EndFadeScreen(playerid);
- PlayerInfo[playerid][OnFloor] = 0;
- SendClientMessage(playerid, COLOR_YELLOW2, "You have been cloned by the Technological Research Bureau. Welcome back to Oneiric City.");
- return 1;
- }
- fpublic Dying(playerid)
- {
- new Float:health;
- GetPlayerHealth(playerid,health);
- if(health == 1) {
- KillTimer(dyingfucking[playerid]);
- PlayerInfo[playerid][OnFloor] = 3;
- SpawnPlayer(playerid); }
- else {
- SetPlayerHealth(playerid,health-1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment