10.11.2012, 01:42
pawn Код:
if( RegSpawn [ playerid ] == true )
{
new
ranSkin = random( sizeof( ValidCivilianSkins ) );
for( new t; t < 9; t ++ )
{
TextDrawShowForPlayer( playerid, RegisterTD [ t ] );
}
TutTimer [ playerid ] = SetTimerEx( "NextSlide", 15000, true, "i", playerid );
// This is the conflict somehow. ^
TogglePlayerSpectating( playerid, true );
TogglePlayerControllable( playerid, false );
SetPlayerSkin( playerid, ValidCivilianSkins [ ranSkin ] );
PlayerInfo [ playerid ] [ OldSkin ] = ValidCivilianSkins [ ranSkin ];
return true;
}
pawn Код:
forward NextSlide( playerid );
public NextSlide( playerid )
{
switch( TutSlide [ playerid ] )
{
case 1:
{
for( new t; t < 9; t ++ )
{
if( t < 5 ) continue;
TextDrawHideForPlayer( playerid, RegisterTD [ t ] );
}
}
case 2:
{
TextDrawShowForPlayer( playerid, RegisterTD [ 9 ] );
TextDrawShowForPlayer( playerid, RegisterTD [ 10 ] );
TextDrawShowForPlayer( playerid, RegisterTD [ 11 ] );
SetPlayerCameraPos( playerid, -183.0852, 1118.5100, 19.7422 );
SetPlayerCameraLookAt( playerid, -201.0037, 1118.6375, 19.7422 );
}
case 3:
{
for( new t; t < 12; t ++ )
{
TextDrawHideForPlayer( playerid, RegisterTD [ t ] );
}
TutSlide [ playerid ] = -1;
TogglePlayerSpectating( playerid, false );
RegSpawn [ playerid ] = false;
FirstSpawn [ playerid ] = true;
KillTimer( TutTimer [ playerid ] );
return true;
}
}
TutSlide [ playerid ] ++;
return true;
}