[AJUDA]Tutorial
#1

Galera o Tutorial do meu server nгo estб apagando ao terminar, nem quando usa o /pulartuto.

O sistema dele estб logo abaixo.

Код:
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 .");
       		//SetPlayerPos(playerid,1435.0873,-814.4576,63.1395);
       		//LimparChat(playerid);
            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);
			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);
			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);
			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);
			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);
			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:
	    {
	    	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;
}







Код:
	if (strcmp(cmd, "/pulartuto", true) ==0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            if(PlayerInfo[playerid][pTut] == 0)
            {
            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;
	}
Reply


Messages In This Thread
[AJUDA]Tutorial - by Behind - 22.05.2011, 20:14
Re: [AJUDA]Tutorial - by Hiuship - 22.05.2011, 21:32
Re: [AJUDA]Tutorial - by Behind - 22.05.2011, 21:49
Re: [AJUDA]Tutorial - by Hiuship - 22.05.2011, 22:05
Re: [AJUDA]Tutorial - by Behind - 22.05.2011, 23:02
Re: [AJUDA]Tutorial - by Behind - 22.05.2011, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)