30.06.2014, 17:02
Add me on skype, I've got a problem with OnPlayerDeath class, I'm paying!
Skype: Sheilem2013
Skype: Sheilem2013
public OnPlayerDeath(playerid, killerid, reason)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
SendClientMessage(killerid, COLOR_TWRED, "They black out, and fall to the ground...");
SendClientMessage(playerid, COLOR_TWRED, "You black out, and fall to the ground...");
ClearWeapons(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerControllable(playerid, false);
SetTimerEx("Hospital", 25000, 0, "i", playerid);
return 1;
}
public Hospital(playerid)
{
new string[256];
TogglePlayerSpectating(playerid, false);
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -318.6522, 1049.3909, 20.3403, 358.4333, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, -676.3841, -726.8386, 1072.5399);
SetPlayerFacingAngle(playerid, 91.4410);
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, COLOR_TWPINK, "You wake up in a hospital bed, a bit dizzy, and cannot remember what had happened!");
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
format(string, sizeof(string), " %s slowly opens his eyes, waking up in a hospital bed", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}