20.11.2011, 13:13
Aqui estб meu tutorial :
pawn Код:
public InitiateTutorial(playerid)
{
TextDrawShowForPlayer(playerid, topblack);
TextDrawShowForPlayer(playerid, bottomblack);
TogglePlayerControllable(playerid, false);
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "_____________________________|- TUTORIAL-|_________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "_____________________________________________________________________________");
SetPlayerCameraPos(playerid, 1214.6021,56.2835,27.4255);
SetPlayerCameraLookAt(playerid, 1217.6703,58.9780,26.1841);
SetPlayerPos(playerid, 1222.0864,62.8563,24.5562);
SetTimerEx("TutorialStateTwo", 18000, false, "d", playerid);
return 1; //-- nгo estava aqui (?)
}
public TutorialStateTwo(playerid)
{
ClearScreen(playerid);
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ______________________________________________|- TUTO -|__________________________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial . ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "________________________________________________________________________________________________________________________");
SetPlayerCameraPos(playerid, 1329.3041,412.7716,19.5471);
SetPlayerCameraLookAt(playerid, 1334.6259,413.3284,19.5547);
SetPlayerPos(playerid, 1339.8793,417.0267,19.5047);
SetTimerEx("TutorialStateThree", 20000, false, "d", playerid);
}
public TutorialStateThree(playerid)
{
/*#define DISTANCE 10.0
SetPlayerCameraLookAt(playerid, SavePos[playerid][picX] + DISTANCE * floatsin(-SavePos[playerid][picA], degrees), SavePos[playerid][picY] + DISTANCE * floatcos(-SavePos[playerid][picA], degrees), SavePos[playerid][picZ]);*/
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ___________________________________|- TUTORIAL -|_________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "____________________________________________________________________________________________________________________");
SetPlayerCameraPos(playerid, 1154.7676,570.9052,20.2344);
SetPlayerCameraLookAt(playerid, 1156.5530,567.7151,20.2344);
SetPlayerPos(playerid, 1158.5873,564.0803,20.2344);
SetTimerEx("TutorialStateFive", 20000, false, "d", playerid);
}
public TutorialStateFive(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " _______________________________________|- Exemplo do Tutorial -|____________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "________________________________________________________________________________________________________");
SetPlayerCameraPos(playerid, 90.7748,-187.3225,6.5726);
SetPlayerCameraLookAt(playerid, 91.3329,-190.7884,6.7109);
SetPlayerPos(playerid, 93.8208,-194.4177,7.0397);
SetTimerEx("TutorialStateNine", 20000, false, "d", playerid);
}
forward TutorialStateNine(playerid);
public TutorialStateNine(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ______________________________|- Exemplo do Tutorial -|______________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial o. ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "________________________________________________________________________________________");
SetPlayerCameraPos( playerid, 665.9098,-606.9818,16.3359);
SetPlayerCameraLookAt( playerid, 662.6512,-605.6749,16.3359);
SetPlayerPos(playerid, 659.8431,-604.2321,16.1875);
SetTimerEx("TutorialStateSix", 20000, false, "d", playerid);
}
public TutorialStateSix(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ____________________________________|- Exemplo do Tutorial -|_________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "__________________________________________________________________________________________");
SetPlayerCameraPos( playerid, 1137.0394,336.2674,25.0657);
SetPlayerCameraLookAt( playerid, 1139.6851,335.4852,24.7822);
SetPlayerPos(playerid, 1141.9766,334.8078,24.5366);
SetTimerEx("TutorialStateSeven", 20000, false, "d", playerid);
}
public TutorialStateSeven(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ______________________________|- TUTO -|______________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "__________________________________________________________________________________________");
SetPlayerCameraPos( playerid, 1550.6705,103.4677,29.3473);
SetPlayerCameraLookAt( playerid, 1548.9165,99.4860,29.1703);
SetPlayerPos(playerid, 1547.4102,96.0664,29.0183);
SetTimerEx("TutorialStateOOCIC", 20000, false, "d", playerid);
}
public TutorialStateOOCIC(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ______________________________________________|- Exemplo do Tutorial -|___________________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_YELLOW, "_________________________________________________________________________________________________________________________________");
SetPlayerCameraPos( playerid, 1487.8512,165.2901,29.7290);
SetPlayerCameraLookAt( playerid, 1487.8512,165.2901,29.7290);
SetPlayerPos(playerid, 1481.4088,168.8617,28.6870);
SetTimerEx("TutorialStateEight", 20000, false, "d", playerid);
}
public TutorialStateMetaPower(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " ______________________________________|- Exemplo do Tutorial -|________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "____________________________________________________________________________________________________________");
SetPlayerCameraPos( playerid, 665.9098,-606.9818,16.3359);
SetPlayerCameraLookAt( playerid, 662.6512,-605.6749,16.3359);
SetPlayerPos(playerid, 659.8431,-604.2321,16.1875);
SetTimerEx("TutorialStateRP", 20000, false, "d", playerid);
}
public TutorialStateRP(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, " _______________________________|- Roleplay -|_______________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "____________________________________________________________________________ ");
SetPlayerCameraPos(playerid, 1154.7676,570.9052,20.2344);
SetPlayerCameraLookAt(playerid, 1156.5530,567.7151,20.2344);
SetPlayerPos(playerid, 1158.5873,564.0803,20.2344);
SetTimerEx("TutorialStateEight", 20000, false, "d", playerid);
}
public TutorialStateEight(playerid)
{
ClearScreen(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "______________________________________|- Fim -|___________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " -Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " - Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " Exemplo do Tutorial ");
SendClientMessage(playerid, COLOR_YELLOW, "__________________________________________________________________________________________");
TextDrawHideForPlayer(playerid, topblack);
TextDrawHideForPlayer(playerid, bottomblack);
TogglePlayerControllable(playerid, true);
PlayerInfo[playerid][pTut] = 1;
if(PlayerInfo[playerid][pHvida] == 1)
{
if(PlayerInfo[playerid][pSex] == 1)
{
SetPlayerSkin(playerid, 188);
PlayerInfo[playerid][pSkin] = 188;
}
if(PlayerInfo[playerid][pSex] == 2)
{
SetPlayerSkin(playerid, 13);
PlayerInfo[playerid][pSkin] = 13;
}
PlayerInfo[playerid][pMissaoNewbie] = 1;
PlayerInfo[playerid][pBuLic] = 1;
SpawnPlayer(playerid);
}
else if(PlayerInfo[playerid][pHvida] == 2)
{
if(PlayerInfo[playerid][pSex] == 1)
{
SetPlayerSkin(playerid, 133);
PlayerInfo[playerid][pSkin] = 133;
}
if(PlayerInfo[playerid][pSex] == 2)
{
SetPlayerSkin(playerid, 225);
PlayerInfo[playerid][pSkin] = 225;
}
PlayerInfo[playerid][pMissaoNewbie] = 2;
PlayerInfo[playerid][pBuLic] = 0;
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 30);
ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 0, 0, 0, 0);
}
else if(PlayerInfo[playerid][pHvida] == 3)
{
if(PlayerInfo[playerid][pSex] == 1)
{
SetPlayerSkin(playerid, 188);
PlayerInfo[playerid][pSkin] = 188;
}
if(PlayerInfo[playerid][pSex] == 2)
{
SetPlayerSkin(playerid, 226);
PlayerInfo[playerid][pSkin] = 226;
}
PlayerInfo[playerid][pMissaoNewbie] = 3;
PlayerInfo[playerid][pBiLic] = 1;
PlayerInfo[playerid][pBuLic] = 1;
SpawnPlayer(playerid);
}
}