02.04.2015, 01:04
Aqui o codigo, antes de tentar fazer a gambirra.
eu tentiu fazer a gambirra mas ele nгo seta a skin. abaixo a gambiarra.
Код:
function Tutorial_Inside(playerid) // Tutorial optimizado
{
new string[512];
if(TutStep[playerid] == 1)
{
if(TutTime[playerid] >= 1)
{
switch (TutTime[playerid])
{
case 1:
{
SetPlayerPos(playerid,2845.2327,-1461.8414,51.0380);
Streamer_UpdateEx(playerid,2845.2327,-1461.8414,51.0380);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 0);
}
case 2:
{
ClearChatbox(playerid);
TutStep[playerid] = 0; Muted[playerid] = 0;
ShowProgressBarForPlayer(playerid, HungryBar[playerid]);
ShowProgressBarForPlayer(playerid, SleepBar[playerid]);
TutTime[playerid] = 0; HungryCheck(playerid, 50.0);
SetPlayerSkin(playerid, Info[playerid][pChar]);
SetPosEx(playerid, 1743.2155,-1862.1309,13.5767,0,0,0);
SendClientMessageEx(playerid, COLOR_GENERAL, "Bem-vindo! {FFFFFF}Se vocк tiver quaisquer dъvidas ou perguntas, utilize o nosso canal de ajuda, /duvida [Pergunta].");
SendClientMessageEx(playerid, -1, "Vocк pode relatar problemas com o comando /reportar [ID] [razгo] e nosso suporte irб ajudar.");
SendClientMessageEx(playerid, COLOR_GENERAL, "Atenзгo: {FFFFFF}Voзк Tem uma restriзгo ao uso de armas de 2 hora.");
SendClientMessageEx(playerid, COLOR_GENERAL, "Atenзгo: {FFFFFF}A barra amarela й a porcentagem de fome ea Roxa de Sono.");
Info[playerid][pWRestricted] = 1; Info[playerid][pTut] = 1;
Info[playerid][pTimePayDay] = 0; Info[playerid][pLevel] = 1;
TogglePlayerControllable(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
ClearAnimations(playerid);
SetCameraBehindPlayer(playerid);
GivePlayerCash(playerid,500);
format(string, sizeof(string), "~y~Bem-vindo~n~%s", GetPlayerNameEx(playerid));
GameTextForPlayer(playerid, string, 4000, 1);
for(new p = 0; p < 13; p++)
{
TextDrawShowForPlayer(playerid, BarraCRP[p]);
}
PlayerTextDrawShow(playerid, Hora[playerid]);
PlayerTextDrawShow(playerid, PontosTextDraw[playerid]);
PlayerTextDrawShow(playerid, TrabalhoTextDraw[playerid]);
}
}
}
}
return 1;
}
Код:
function Tutorial_Inside(playerid) // Tutorial optimizado
{
new string[512];
if(TutStep[playerid] == 1)
{
if(TutTime[playerid] >= 1)
{
ClearChatbox(playerid);
TutStep[playerid] = 0; Muted[playerid] = 0;
ShowProgressBarForPlayer(playerid, HungryBar[playerid]);
ShowProgressBarForPlayer(playerid, SleepBar[playerid]);
TutTime[playerid] = 0; HungryCheck(playerid, 50.0);
SetPlayerSkin(playerid, Info[playerid][pChar]);
SetPosEx(playerid, 1743.2155,-1862.1309,13.5767,0,0,0);
SendClientMessageEx(playerid, COLOR_GENERAL, "Bem-vindo! {FFFFFF}Se vocк tiver quaisquer dъvidas ou perguntas, utilize o nosso canal de ajuda, /duvida [Pergunta].");
SendClientMessageEx(playerid, -1, "Vocк pode relatar problemas com o comando /reportar [ID] [razгo] e nosso suporte irб ajudar.");
SendClientMessageEx(playerid, COLOR_GENERAL, "Atenзгo: {FFFFFF}Voзк Tem uma restriзгo ao uso de armas de 2 hora.");
SendClientMessageEx(playerid, COLOR_GENERAL, "Atenзгo: {FFFFFF}A barra amarela й a porcentagem de fome ea Roxa de Sono.");
Info[playerid][pWRestricted] = 1; Info[playerid][pTut] = 1;
Info[playerid][pTimePayDay] = 0; Info[playerid][pLevel] = 1;
TogglePlayerControllable(playerid, 1);
SetPlayerVirtualWorld(playerid, 0);
ClearAnimations(playerid);
SetCameraBehindPlayer(playerid);
GivePlayerCash(playerid,500);
format(string, sizeof(string), "~y~Bem-vindo~n~%s", GetPlayerNameEx(playerid));
GameTextForPlayer(playerid, string, 4000, 1);
for(new p = 0; p < 13; p++)
{
TextDrawShowForPlayer(playerid, BarraCRP[p]);
}
PlayerTextDrawShow(playerid, Hora[playerid]);
PlayerTextDrawShow(playerid, PontosTextDraw[playerid]);
PlayerTextDrawShow(playerid, TrabalhoTextDraw[playerid]);
}
}
return 1;
}


