Ingame tutorial, but how?
#2

You can set SetCameraLookAt then add textdraws.

PHP код:
     // Tutorial (Next Page)
    
TutTxtdraw[114] = TextDrawCreate(427.000000120.000000"Type ~r~/next");
    
TextDrawBackgroundColor(TutTxtdraw[114], 255);
    
TextDrawFont(TutTxtdraw[114], 2);
    
TextDrawLetterSize(TutTxtdraw[114], 0.1599980.899999);
    
TextDrawColor(TutTxtdraw[114], -1);
    
TextDrawSetOutline(TutTxtdraw[114], 1);
    
TextDrawSetProportional(TutTxtdraw[114], 1);
    
textdrawscount++; 
So they have to type /next to get a new "side"

These is from my own script.

PHP код:
CMD:next(playeridparams[])
{
    if(
InsideTut[playerid] < 1)
    {
        
SendClientMessageEx(playeridCOLOR_WHITE"You can't use the command outside the tutorial.");
        return 
1;
    }

    switch(
TutStep[playerid])
    {
        case 
1:
        {
            
HideTutGUIFrame(playerid1);
            
ShowTutGUIFrame(playerid2);
            
TutStep[playerid] = 2;

            
// Los Santos Bank (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid1457.4854,-1011.5267,26.8438);
            
SetPlayerPos(playerid1457.4854,-1011.5267,-10.0);
            
SetPlayerCameraPos(playerid1457.5421,-1039.4404,28.4274);
            
SetPlayerCameraLookAt(playerid1457.4854,-1011.5267,26.8438);
        }
        case 
2:
        {
            
ShowTutGUIFrame(playerid3);
            
TutStep[playerid] = 3;

            
// Los Santos ATM (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid2140.5173,-1163.9576,23.9922);
            
SetPlayerPos(playerid2140.5173,-1163.9576,-10.0);
            
SetPlayerCameraPos(playerid2145.8252,-1159.2659,27.7218);
            
SetPlayerCameraLookAt(playerid2140.5173,-1163.9576,23.9922);
        }
        case 
3:
        {
            
ShowTutGUIFrame(playerid4);
            
TutStep[playerid] = 4;

            
// Fishing Pier (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid370.0804,-2087.8767,7.8359);
            
SetPlayerPos(playerid370.0804,-2087.8767,-10.0);
            
SetPlayerCameraPos(playerid423.3802,-2067.7915,29.8605);
            
SetPlayerCameraLookAt(playerid370.0804,-2087.8767,7.8359);
        }
        case 
4:
        {
            
ShowTutGUIFrame(playerid5);
            
TutStep[playerid] = 5;

            
// Ganton Gym (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid2229.4968,-1722.0701,13.5625);
            
SetPlayerPos(playerid2229.4968,-1722.0701,-10.0);
            
SetPlayerCameraPos(playerid2211.1460,-1748.3909,29.3744);
            
SetPlayerCameraLookAt(playerid2229.4968,-1722.0701,13.5625);
        }
        case 
5:
        {
            
ShowTutGUIFrame(playerid6);
            
TutStep[playerid] = 6;

            
// Arms Dealer (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid1366.1187,-1275.1248,13.5469);
            
SetPlayerPos(playerid1366.1187,-1275.1248,-10.0);
            
SetPlayerCameraPos(playerid1341.2936,-1294.8105,23.3096);
            
SetPlayerCameraLookAt(playerid1366.1187,-1275.1248,13.5469);
        } 
Reply


Messages In This Thread
Ingame tutorial, but how? - by samtey - 13.08.2011, 09:56
Re: Ingame tutorial, but how? - by Meinstad - 13.08.2011, 10:02
AW: Ingame tutorial, but how? - by samtey - 13.08.2011, 10:11
Re: Ingame tutorial, but how? - by Meinstad - 13.08.2011, 10:14
Re: Ingame tutorial, but how? - by emokidx - 13.08.2011, 10:30
AW: Ingame tutorial, but how? - by samtey - 13.08.2011, 10:32
Re: Ingame tutorial, but how? - by Meinstad - 13.08.2011, 10:33
Re: Ingame tutorial, but how? - by emokidx - 13.08.2011, 10:34
AW: Ingame tutorial, but how? - by samtey - 13.08.2011, 10:37
Re: Ingame tutorial, but how? - by emokidx - 13.08.2011, 10:40

Forum Jump:


Users browsing this thread: 2 Guest(s)