22.05.2011, 21:32
Dei uma almentadinha no seu codigo mais foi o geito
uUhauHAuahUAH
uUhauHAuahUAH
pawn Код:
stock Inicial(playerid)
{
SetPlayerInterior(playerid,0);
partetutorial[playerid] = 1;
SetPlayerVirtualWorld(playerid,playerid+1);
TogglePlayerControllable(playerid, 0);
SetPlayerHealth(playerid,100.0);
Tutorial(playerid);
return 1;
}
public Tutorial(playerid)
{
switch(partetutorial[playerid])
{
case 1:
{
EsconderTodosText(playerid);
KillTimer(tempotutorial[playerid]);
tempotutorial[playerid] = SetTimerEx("Tutorial",17500,1,"i",playerid);
SetPlayerCameraPos(playerid,1455.2659,-860.0505,61.1275);
SetPlayerCameraLookAt(playerid,1432.2118,-826.8952,80.7208);
SendClientMessage(playerid, COLOR_AFK,"Dica: Nгo quer assistir ao Tutorial? /pulartuto .");
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw3z);
TextDrawShowForPlayer(playerid,Text:Textdraw4z);
TextDrawShowForPlayer(playerid,Text:Textdraw5z);
TextDrawShowForPlayer(playerid,Text:Textdraw6z);
TextDrawShowForPlayer(playerid,Text:Textdraw7z);
TextDrawShowForPlayer(playerid,Text:Textdraw0i);
TextDrawShowForPlayer(playerid,Text:Textdraw1i);
TextDrawShowForPlayer(playerid,Text:Textdraw2i);
TextDrawShowForPlayer(playerid,Text:Textdraw3i);
TextDrawShowForPlayer(playerid,Text:Textdraw4i);
TextDrawShowForPlayer(playerid,Text:Textdraw5i);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 2;
return 1;
}
case 2:
{
SetPlayerCameraPos(playerid,1169.4860,-1357.0984,122.2312);
SetPlayerCameraLookAt(playerid,1461.2448,-1346.3914,122.2312);
// SetPlayerPos(playerid,1169.4860,-1357.0984,122.2312);
EsconderTodosText(playerid);
//LimparChat(playerid);
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw3z);
TextDrawHideForPlayer(playerid,Text:Textdraw4z);
TextDrawHideForPlayer(playerid,Text:Textdraw5z);
TextDrawHideForPlayer(playerid,Text:Textdraw6z);
TextDrawHideForPlayer(playerid,Text:Textdraw7z);
TextDrawHideForPlayer(playerid,Text:Textdraw0i);
TextDrawHideForPlayer(playerid,Text:Textdraw1i);
TextDrawHideForPlayer(playerid,Text:Textdraw2i);
TextDrawHideForPlayer(playerid,Text:Textdraw3i);
TextDrawHideForPlayer(playerid,Text:Textdraw4i);
TextDrawHideForPlayer(playerid,Text:Textdraw5i);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//============================================
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw0qw);
TextDrawShowForPlayer(playerid,Text:Textdraw1qw);
TextDrawShowForPlayer(playerid,Text:Textdraw2qw);
TextDrawShowForPlayer(playerid,Text:Textdraw3qw);
TextDrawShowForPlayer(playerid,Text:Textdraw4qw);
TextDrawShowForPlayer(playerid,Text:Textdraw5qw);
TextDrawShowForPlayer(playerid,Text:agindo);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 3;
return 1;
}
case 3:
{
SetPlayerCameraPos(playerid,962.4185,-960.7972,48.3208);
//SetPlayerPos(playerid,962.4185,-960.7972,48.3208);
SetPlayerCameraLookAt(playerid,952.5886,-909.2940,45.7656);
EsconderTodosText(playerid);
LimparChat(playerid);
TextDrawHideForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw0qw);
TextDrawHideForPlayer(playerid,Text:Textdraw1qw);
TextDrawHideForPlayer(playerid,Text:Textdraw2qw);
TextDrawHideForPlayer(playerid,Text:Textdraw3qw);
TextDrawHideForPlayer(playerid,Text:Textdraw4qw);
TextDrawHideForPlayer(playerid,Text:Textdraw5qw);
TextDrawHideForPlayer(playerid,Text:agindo);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//===============================
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw0rw);
TextDrawShowForPlayer(playerid,Text:Textdraw1rw);
TextDrawShowForPlayer(playerid,Text:Textdraw2rw);
TextDrawShowForPlayer(playerid,Text:Textdraw3rw);
TextDrawShowForPlayer(playerid,Text:Textdraw4rw);
TextDrawShowForPlayer(playerid,Text:Textdraw5rw);
TextDrawShowForPlayer(playerid,Text:Textdraw6rw);
TextDrawShowForPlayer(playerid,Text:comofalar);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 4;
return 1;
}
case 4:
{
KillTimer(tempotutorial[playerid]);
tempotutorial[playerid] = SetTimerEx("Tutorial",17500,1,"i",playerid);
SetPlayerCameraPos(playerid,1481.2372,-1711.9554,13.6139);
SetPlayerCameraLookAt(playerid,1481.4960,-1749.3385,32.1287);
//SetPlayerPos(playerid,1481.2372,-1711.9554,13.6139);
EsconderTodosText(playerid);
LimparChat(playerid);
TextDrawHideForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw0rw);
TextDrawHideForPlayer(playerid,Text:Textdraw1rw);
TextDrawHideForPlayer(playerid,Text:Textdraw2rw);
TextDrawHideForPlayer(playerid,Text:Textdraw3rw);
TextDrawHideForPlayer(playerid,Text:Textdraw4rw);
TextDrawHideForPlayer(playerid,Text:Textdraw5rw);
TextDrawHideForPlayer(playerid,Text:Textdraw6rw);
TextDrawHideForPlayer(playerid,Text:comofalar);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//==========================================
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw0op);
TextDrawShowForPlayer(playerid,Text:Textdraw1op);
TextDrawShowForPlayer(playerid,Text:Textdraw2op);
TextDrawShowForPlayer(playerid,Text:Textdraw3op);
TextDrawShowForPlayer(playerid,Text:Textdraw4op);
TextDrawShowForPlayer(playerid,Text:Textdraw5op);
TextDrawShowForPlayer(playerid,Text:Textdraw6op);
TextDrawShowForPlayer(playerid,Text:Textdraw7op);
TextDrawShowForPlayer(playerid,Text:ajudaetc);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 5;
return 1;
}
case 5:
{
KillTimer(tempotutorial[playerid]);
tempotutorial[playerid] = SetTimerEx("Tutorial",17500,1,"i",playerid);
SetPlayerCameraPos(playerid,862.1144,-1676.1420,13.5469);
SetPlayerCameraLookAt(playerid,885.9816,-1655.2399,13.5469);
//SetPlayerPos(playerid,862.1144,-1676.1420,13.54699);
EsconderTodosText(playerid);
LimparChat(playerid);
TextDrawHideForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw0op);
TextDrawHideForPlayer(playerid,Text:Textdraw1op);
TextDrawHideForPlayer(playerid,Text:Textdraw2op);
TextDrawHideForPlayer(playerid,Text:Textdraw3op);
TextDrawHideForPlayer(playerid,Text:Textdraw4op);
TextDrawHideForPlayer(playerid,Text:Textdraw5op);
TextDrawHideForPlayer(playerid,Text:Textdraw6op);
TextDrawHideForPlayer(playerid,Text:Textdraw7op);
TextDrawHideForPlayer(playerid,Text:ajudaetc);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//==========================================
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw0hy);
TextDrawShowForPlayer(playerid,Text:Textdraw1hy);
TextDrawShowForPlayer(playerid,Text:Textdraw2hy);
TextDrawShowForPlayer(playerid,Text:Textdraw3hy);
TextDrawShowForPlayer(playerid,Text:Textdraw4hy);
TextDrawShowForPlayer(playerid,Text:Textdraw5hy);
TextDrawShowForPlayer(playerid,Text:Textdraw6hy);
TextDrawShowForPlayer(playerid,Text:Textdraw7hy);
TextDrawShowForPlayer(playerid,Text:regraspun);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 6;
}
case 6:
{
KillTimer(tempotutorial[playerid]);
tempotutorial[playerid] = SetTimerEx("Tutorial",17500,1,"i",playerid);
SetPlayerCameraPos(playerid,383.0398,-2088.2471,7.8359);
SetPlayerCameraLookAt(playerid,432.7112,-2124.6548,7.8359);
// SetPlayerPos(playerid,383.0398,-2088.2471,7.8359);
EsconderTodosText(playerid);
LimparChat(playerid);
TextDrawHideForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw0hy);
TextDrawHideForPlayer(playerid,Text:Textdraw1hy);
TextDrawHideForPlayer(playerid,Text:Textdraw2hy);
TextDrawHideForPlayer(playerid,Text:Textdraw3hy);
TextDrawHideForPlayer(playerid,Text:Textdraw4hy);
TextDrawHideForPlayer(playerid,Text:Textdraw5hy);
TextDrawHideForPlayer(playerid,Text:Textdraw6hy);
TextDrawHideForPlayer(playerid,Text:Textdraw7hy);
TextDrawHideForPlayer(playerid,Text:regraspun);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//==========================================
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawShowForPlayer(playerid,Text:Textdraw1z);
TextDrawShowForPlayer(playerid,Text:Textdraw2z);
TextDrawShowForPlayer(playerid,Text:Textdraw0dw);
TextDrawShowForPlayer(playerid,Text:Textdraw1dw);
TextDrawShowForPlayer(playerid,Text:Textdraw2dw);
TextDrawShowForPlayer(playerid,Text:Textdraw3dw);
TextDrawShowForPlayer(playerid,Text:Textdraw4dw);
TextDrawShowForPlayer(playerid,Text:Textdraw5dw);
TextDrawShowForPlayer(playerid,Text:bomjogo);
TextDrawShowForPlayer(playerid,Text:Textdrawbb);
TextDrawShowForPlayer(playerid,Text:Textdraw0p);
TextDrawShowForPlayer(playerid,Text:Textdraw1p);
partetutorial[playerid] = 7;
}
case 7:
{
TextDrawHideForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw0dw);
TextDrawHideForPlayer(playerid,Text:Textdraw1dw);
TextDrawHideForPlayer(playerid,Text:Textdraw2dw);
TextDrawHideForPlayer(playerid,Text:Textdraw3dw);
TextDrawHideForPlayer(playerid,Text:Textdraw4dw);
TextDrawHideForPlayer(playerid,Text:Textdraw5dw);
TextDrawHideForPlayer(playerid,Text:bomjogo);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
//==============================
KillTimer(tempotutorial[playerid]);
EsconderTodosText(playerid);
LimparChat(playerid);
EsconderTodosText(playerid);
GivePlayerGP(playerid, 0);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerVirtualWorld(playerid,0);
partetutorial[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
SetPlayerPos(playerid,830.8060,-1369.2621,-0.5015);
SetCameraBehindPlayer(playerid);
PlayerPlayMusic(playerid);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 0);
SetPlayerHealth(playerid,100.0);
RegistrationStep[playerid] = 4;
TogglePlayerControllable(playerid, 1);
}
case 8:
{
TogglePlayerControllable(playerid, 1);
EsconderTodosText(playerid);
GameTextForPlayer(playerid, "~w~Retornando ao tutorial...", 5000, 3);
KillTimer(tempotutorial[playerid]);
tempotutorial[playerid] = SetTimerEx("Tutorial",7000,0,"i",playerid);
partetutorial[playerid] = 1;
TextDrawShowForPlayer(playerid,tGP2[playerid]);
}
}
return 1;
}
pawn Код:
if (strcmp(cmd, "/pulartuto", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pTut] == 0)
{
TextDrawShowForPlayer(playerid,Text:Textdraw0z);
TextDrawHideForPlayer(playerid,Text:Textdraw1z);
TextDrawHideForPlayer(playerid,Text:Textdraw2z);
TextDrawHideForPlayer(playerid,Text:Textdraw3z);
TextDrawHideForPlayer(playerid,Text:Textdraw4z);
TextDrawHideForPlayer(playerid,Text:Textdraw5z);
TextDrawHideForPlayer(playerid,Text:Textdraw6z);
TextDrawHideForPlayer(playerid,Text:Textdraw7z);
TextDrawHideForPlayer(playerid,Text:Textdraw0i);
TextDrawHideForPlayer(playerid,Text:Textdraw1i);
TextDrawHideForPlayer(playerid,Text:Textdraw2i);
TextDrawHideForPlayer(playerid,Text:Textdraw3i);
TextDrawHideForPlayer(playerid,Text:Textdraw4i);
TextDrawHideForPlayer(playerid,Text:Textdraw5i);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0p);
TextDrawHideForPlayer(playerid,Text:Textdraw1p);
TextDrawHideForPlayer(playerid,Text:Textdraw0qw);
TextDrawHideForPlayer(playerid,Text:Textdraw1qw);
TextDrawHideForPlayer(playerid,Text:Textdraw2qw);
TextDrawHideForPlayer(playerid,Text:Textdraw3qw);
TextDrawHideForPlayer(playerid,Text:Textdraw4qw);
TextDrawHideForPlayer(playerid,Text:Textdraw5qw);
TextDrawHideForPlayer(playerid,Text:agindo);
TextDrawHideForPlayer(playerid,Text:Textdraw0rw);
TextDrawHideForPlayer(playerid,Text:Textdraw1rw);
TextDrawHideForPlayer(playerid,Text:Textdraw2rw);
TextDrawHideForPlayer(playerid,Text:Textdraw3rw);
TextDrawHideForPlayer(playerid,Text:Textdraw4rw);
TextDrawHideForPlayer(playerid,Text:Textdraw5rw);
TextDrawHideForPlayer(playerid,Text:Textdraw6rw);
TextDrawHideForPlayer(playerid,Text:comofalar);
TextDrawHideForPlayer(playerid,Text:Textdrawbb);
TextDrawHideForPlayer(playerid,Text:Textdraw0op);
TextDrawHideForPlayer(playerid,Text:Textdraw1op);
TextDrawHideForPlayer(playerid,Text:Textdraw2op);
TextDrawHideForPlayer(playerid,Text:Textdraw3op);
TextDrawHideForPlayer(playerid,Text:Textdraw4op);
TextDrawHideForPlayer(playerid,Text:Textdraw5op);
TextDrawHideForPlayer(playerid,Text:Textdraw6op);
TextDrawHideForPlayer(playerid,Text:Textdraw7op);
TextDrawHideForPlayer(playerid,Text:ajudaetc);
TextDrawHideForPlayer(playerid,Text:Textdraw2hy);
TextDrawHideForPlayer(playerid,Text:Textdraw3hy);
TextDrawHideForPlayer(playerid,Text:Textdraw4hy);
TextDrawHideForPlayer(playerid,Text:Textdraw5hy);
TextDrawHideForPlayer(playerid,Text:Textdraw6hy);
TextDrawHideForPlayer(playerid,Text:Textdraw7hy);
TextDrawHideForPlayer(playerid,Text:regraspun);
TextDrawHideForPlayer(playerid,Text:Textdraw0dw);
TextDrawHideForPlayer(playerid,Text:Textdraw1dw);
TextDrawHideForPlayer(playerid,Text:Textdraw2dw);
TextDrawHideForPlayer(playerid,Text:Textdraw3dw);
TextDrawHideForPlayer(playerid,Text:Textdraw4dw);
TextDrawHideForPlayer(playerid,Text:Textdraw5dw);
TextDrawHideForPlayer(playerid,Text:bomjogo);
//=============================================
KillTimer(tempotutorial[playerid]);
EsconderTodosText(playerid);
LimparChat(playerid);
EsconderTodosText(playerid);
GivePlayerGP(playerid, 0);
SetPlayerFacingAngle(playerid, 294.5726);
SetPlayerVirtualWorld(playerid,0);
partetutorial[playerid] = 0;
PlayerInfo[playerid][pTut] = 1;
SetCameraBehindPlayer(playerid);
PlayerPlayMusic(playerid);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid,100.0);
TogglePlayerControllable(playerid, 1);
TutTime[playerid] = 0;
gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
OnPlayerSave(playerid);
SendClientMessage(playerid, TEAM_GROVE_COLOR, "================================================================");
SendClientMessage(playerid, COLOR_WHITE,"Bem vindo ao nosso servidor, /equipe para mais informaзхes.");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "================================================================");
SendClientMessage(playerid, COLOR_WHITE, "[Vida Nova Evolution] Qualquer dъvida, comunique um administrador pelo /relato.");
SendClientMessage(playerid, COLOR_WHITE, "[Vida Nova Evolution] Obrigado pela preferкncia, espero que jogue conosco.");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "================================================================");
SetPlayerPos(playerid,1413.2273,-1702.2941,13.5395);//spawncoord
RegistrationStep[playerid] = 0;
}
else
{ SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк nгo estб no tutorial."); }
}
return 1;
}