Why doesn't this work?
#1

Hello,

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  GetPlayerCameraPos(playerid, x, y, z);
  SetPlayerCameraPos(playerid, x, y, z);
    }
new Float:x, Float:y, Float:z;  GetPlayerCameraPos(playerid, x, y, z);
  SetPlayerCameraPos(playerid, x, y, z);
That is used in OnPlayerDeath
I want it so it SETS your camera THERE, even if you spawn, your camera just stays being the place that SetPlayerCameraPos sets it. But why doesn't it work?
Reply
#2

Get the positions under OnPlayerDeath and set the camera under OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)