How to make a tutorial script
#1

Hey i am looking for it ages and ages but not finding it. Anyone can help me
Reply
#2

Ironic looking for a tutorial on how to make a tutorial
Reply
#3

It's simple really:

- Check between the steps the player is in
- Between each step, send the player messages accordingly
- Between each step, set the players position, camera position, and camera look-at

And when the player gets to the last step of the tutorial, simply spawn them or whatever. All that is required is a variable to hold the steps and the positions of the player, camera and camera look-at.
Reply
#4

but how will the make a that
Reply
#5

so no one. I need this urgent
Reply
#6

pawn Код:
// top of script
new pStep[ MAX_PLAYERS ];

// somewhere, like after registering
SetUpPlayer( playerid );

// Bottom of script
forward SetUpPlayer( playerid );
public SetUpPlayer( playerid )
{
   switch( pStep[ playerid ] )
   {
      case 0:
      {
         // ..
         // SendClientMessage( ... );
         // SetPlayerCameraPos( ... );
         // etc
      }
      case 1:
      {
         // Next step, add in this information
      }
   }
   pStep[ playerid ] ++;
   if( pStep[ playerid ] == 5 ) // Change the '5' to the amount of steps the tutorial will have
   {
      SpawnPlayer( playerid );
      pStep[ playerid ] = 0;
   }
   else
   {
      SetTimerEx( "SetUpPlayer", 10000, false, "i", playerid ); // JChange the '10000' to the amount of time between steps
   }
   return 1;
}
This is an outline of what you need to do. Do not simply copy and paste the code - build off of it.
Reply
#7

thanks. I was waiting for something like this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)