09.05.2014, 22:28
pawn Код:
new Tutorial[ MAX_PLAYERS ][ 2 ]; //Should be global, so we can use it.
forward PlayerTutorial(playerid);
public PlayerTutorial(playerid)
{
Tutorial[ playerid ][ 1 ] = SetTimerEx( "PlayerTutorial", 100*10*20, true, "i", playerid );
choir = SetTimerEx( "WaitingTutorial", 100*10*2, true, "i", playerid );
switch(Tutorial[playerid][0])
{
case 0:
{
KillTimer(choir);
}
case 1:
{
SendClientMessage(playerid, GREEN, "=========================================");
SendClientMessage(playerid, -1, "Hello there. Welcome to San Andreas Online.");
SendClientMessage(playerid, -1, "In this server, you will be able to ................");
SendClientMessage(playerid, -1, "---------------------------------------------------");
SendClientMessage(playerid, GREEN, "=========================================");
}
case 2:
{
SendClientMessage(playerid, -1, "Hello, welcome to SAOnline");
}
case 3:
{
SendClientMessage(playerid, -1, "Hello, welcome to SAOnline");
}
case 4:
{
SendClientMessage(playerid, -1, "Hello, welcome to SAOnline");
}
case 5:
{
SendClientMessage(playerid, -1, "Hello, welcome to SAOnline");
}
case 6:
{
SpawnPlayer(playerid);
SendClientMessage(playerid, -1, "The end");
}
case 7:
{
KillTimer(Tutorial[ playerid ][ 1 ]);
}
}
Tutorial[ playerid ][ 0 ] ++;
return true;
}