18.12.2011, 19:58
It doesn't help, instead it shows the class selection buttons at the bottom of the screen.
Using SetSpawnInfo and SpawnPlayer.
pawn Код:
timer HospitalTimer[15000](playerid)
{
TogglePlayerSpectating(playerid, false);
SetSpawnInfo(playerid, -1, pStats[playerid][EP_SKIN], fHospSpawnX, fHospSpawnY, fHospSpawnZ, fHospSpawnR, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have been discharged from the hospital.");
DeletePVar(playerid, "INHOSP");
}