01.01.2011, 15:51
Hey i am looking for it ages and ages but not finding it. Anyone can help me
// 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;
}