10.01.2015, 21:32
Quote:
you get the player's coordinates, set the camera to a higher altitude (z axys) and set it to face the player. I haven't tested what I did, but it should be something like this:
Код:
forward camtrick(); public OnPlayerDeath(playerid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetPlayerCameraPos(playerid, x, y, z+2); SetTimer("camtrick", 2500, false); // Set a timer of 2.5 seconds } public camtrick() { SetCameraBehindPlayer(playerid): } |
I think I must set timer for respawn delay too.