pawn Код:
TogglePlayerControllable(playerid, 0);
SetPlayerVirtualWorld(playerid, playerid);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid, -219.265029,1410.590087,28.8);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerCameraPos(playerid, -220.265029,1410.590087,28.2);
SetPlayerCameraLookAt(playerid, -219.265029,1410.590087,28.0);
KillTimer(gHospitalTimer[playerid]);
PlayerHospitalized[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "You have been killed and must spend some time in the hospital recovering.");
gHospitalTimer[playerid] = SetTimerEx("OnPlayerSpawn", 60000, 0, "d", playerid);
return 1;
PHP код:
stock PreloadAnimLib(playerid, animlib[])
ApplyAnimation(playerid, animlib, "crckdeth2", 4.0, 1, 0, 0, 0, 0);
PreloadAnimLib(playerid, "CRACK");
Load the animation libraries once when the player connects.