PAWN Lang Scripting Questions
#7

Quote:
Originally Posted by » RyDeR «
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by dice7
1. Just send the player somewhere else, freeze him and change the camera
2. Change the camera
1. Yeah works ty!
2. By that you mean SetPlayerCameraPos?
You can use my OnPlayerRequestClass maker for getting the correct view.
Yeah i am i like your maker its awesome
Ok so yeah i got this:

pawn Code:
public OnPlayerDeath(playerid, killerid)
{
    SetPlayerPos(playerid, 0.0, 0.0, 50.0);
    TogglePlayerControllable(playerid, 0);
  SetPlayerCameraPos(playerid, -2493.41, 645.15, 78.87);
    SetPlayerCameraLookAt(playerid, -2498.31, 644.39, 78.19);
    TextDrawShowForPlayer(playerid, Text:RecoveryText);
    SetTimerEx("DeathRecovery", 25000, 0, "i", playerid);
    return 1;
}

public DeathRecovery(playerid)
{
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    TextDrawHideForPlayer(playerid, Text:RecoveryText);
    return 1;
}
Ive only tested once, But when 25 seconds was over i couldnt see my player but my camera was falling, And when i died cos i was high up, Blood appeared but no player?
Reply


Messages In This Thread
PAWN Lang Scripting Questions - by Torran - 29.04.2010, 19:16
Re: PAWN Lang Scripting Questions - by biltong - 29.04.2010, 19:48
Re: PAWN Lang Scripting Questions - by dice7 - 29.04.2010, 19:54
Re: PAWN Lang Scripting Questions - by coole210 - 29.04.2010, 19:59
Re: PAWN Lang Scripting Questions - by Torran - 29.04.2010, 20:08
Re: PAWN Lang Scripting Questions - by RyDeR` - 29.04.2010, 20:18
Re: PAWN Lang Scripting Questions - by Torran - 29.04.2010, 20:22
Re: PAWN Lang Scripting Questions - by Torran - 30.04.2010, 08:19
Re: PAWN Lang Scripting Questions - by Rac3r - 30.04.2010, 08:29
Re: PAWN Lang Scripting Questions - by Torran - 30.04.2010, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)