Help Pls
#1

Here or Code
Код:
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;
}
I tried to remove the first part of the code more problems, he did not adciona the player the "Skin"

Код:
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;
}
Reply


Messages In This Thread
Help Pls - by Holl - 01.04.2015, 15:10
Re: Help Pls - by CalvinC - 01.04.2015, 15:32
Re: Help Pls - by Holl - 01.04.2015, 15:57
Re: Help Pls - by Yashas - 01.04.2015, 17:15
Re: Help Pls - by Holl - 01.04.2015, 21:39

Forum Jump:


Users browsing this thread: 2 Guest(s)