SA-MP Forums Archive
cutscene - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cutscene (/showthread.php?tid=346441)



cutscene - thefatshizms - 28.05.2012

yo, i was wodering is it possible to make a cutscene like in gta sa missions ? maybe with npc's ?


Re: cutscene - CidadeNovaRP - 28.05.2012

Yes, add Animations and BOT's .


Re: cutscene - Faisal_khan - 28.05.2012

Yes you can, you need NPC and textdraws, plus some math stuff, you have to use animations and other SA-MP functions to do so.
Like:
Код:
TogglePlayerControllable
SetPlayerCameraPos
SetPlayerCameraLookAt
TextDrawCreate
TextDrawShowForPlayer



Re: cutscene - MP2 - 28.05.2012

The new interpolated camera functions are great for cutscenes, and you can use these textdraws for a 'widescreen' effect:

pawn Код:
WIDESCREEN_TOP = TextDrawCreate(320.000000, 1.000000, "_");
    TextDrawAlignment(WIDESCREEN_TOP, 2);
    TextDrawBackgroundColor(WIDESCREEN_TOP, 255);
    TextDrawFont(WIDESCREEN_TOP, 1);
    TextDrawLetterSize(WIDESCREEN_TOP, 0.500000, 8.000000);
    TextDrawColor(WIDESCREEN_TOP, -1);
    TextDrawSetOutline(WIDESCREEN_TOP, 0);
    TextDrawSetProportional(WIDESCREEN_TOP, 1);
    TextDrawSetShadow(WIDESCREEN_TOP, 1);
    TextDrawUseBox(WIDESCREEN_TOP, 1);
    TextDrawBoxColor(WIDESCREEN_TOP, 255);
    TextDrawTextSize(WIDESCREEN_TOP, 0.000000, -660.000000);

    WIDESCREEN_BOTTOM = TextDrawCreate(320.000000, 381.000000, "_");
    TextDrawAlignment(WIDESCREEN_BOTTOM, 2);
    TextDrawBackgroundColor(WIDESCREEN_BOTTOM, 255);
    TextDrawFont(WIDESCREEN_BOTTOM, 1);
    TextDrawLetterSize(WIDESCREEN_BOTTOM, 0.500000, 8.000000);
    TextDrawColor(WIDESCREEN_BOTTOM, -1);
    TextDrawSetOutline(WIDESCREEN_BOTTOM, 0);
    TextDrawSetProportional(WIDESCREEN_BOTTOM, 1);
    TextDrawSetShadow(WIDESCREEN_BOTTOM, 1);
    TextDrawUseBox(WIDESCREEN_BOTTOM, 1);
    TextDrawBoxColor(WIDESCREEN_BOTTOM, 255);
    TextDrawTextSize(WIDESCREEN_BOTTOM, 0.000000, -660.000000);



Re: cutscene - Faisal_khan - 28.05.2012

And yeah there's this thing also you might like it[FS] Letterbox Mode


Re: cutscene - MP2 - 28.05.2012

Should be an include, not a filterscript. Where is the practicality in a filtescript..? You need to use the functions in your gamemode.