SA-MP Forums Archive
[PEDIDO] /pulartuto - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] /pulartuto (/showthread.php?tid=179249)



[PEDIDO] /pulartuto - spam23 - 26.09.2010

Galera , nao me chingue nem nada .. sou novo em pwn e peзo uma ajuda de voces se for possivel..
o topico do marshall nao tem nada que interesse e que de certo e busquei no search e nao achei nada que fosse util do /pulartuto para meu gm..

o codigo й :



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



Re: [PEDIDO] /pulartuto - Andrevic - 22.01.2011

pawn Код:
if(strcmp("/pulartuto", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pTut] == 0)
            {
            KillTimer(tempotutorial[playerid]);
            EsconderTodosText(playerid);
            LimparChat(playerid);
            EsconderTodosText(playerid);
            DarReais(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);
            SpawnPlayer(playerid);
            RegistrationStep[playerid] = 0;
            }
            else
            { SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo estб no tutorial.");  }
        }
        return 1;
    }



Re: [PEDIDO] /pulartuto - Macintosh - 22.01.2011

Simples
pawn Код:
if(strcmp("/pulartuto",cmdtext, true, 10) == 0 || strcmp("/pulartutorial",cmdtext, true, 10) == 0))
{
 if(!IsPlayerConnected(playerid))
 {
  SendClientMessage(playrid, COR, "Vocк nгo estб conectado!");
  return 1;
 }
 (PlayerInfo[playerid][pTut] == 1)
  {
   SendClientMessage(playrid, COR, "Vocк pulou o tutorial!");
   //SetPlayerPos(playerid, X,Y,Z); Se desejar adc uma posiзгo ao terminar de pular o tutorial ^^
   }
   return 1;
}



Re: [PEDIDO] /pulartuto - Trinix_PoS [Bizu] - 22.01.2011

Codigo Arrumado


pawn Код:
if(strcmp("/pulartuto",cmdtext, true, 10) == 0 || strcmp("/pulartutorial",cmdtext, true, 10) == 0))
   {
    if(!IsPlayerConnected(playerid))
   {
   TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
   gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
   TogglePlayerControllable(playerid, 1);
   PlayerInfo[playerid][pOrigem] = 1;
   MedicBill[playerid] = 0;
   SpawnPlayer(playerid);
   SendClientMessage(playerid, COLOR_WHITE, "Voce Pulou o Tutorial");
   return 1;
}



Re: [PEDIDO] /pulartuto - Macintosh - 22.01.2011

OH Very Fail da minha parte.

NUBEI agora mals ai .-.

confundi...

No meu codigo se ele tivesse visto o tuto sу apareceria a msg e o cara seria teleportado *-*

Desculpa mais uma vez.


Re: [PEDIDO] /pulartuto - Trinix_PoS [Bizu] - 22.01.2011

very fail kkk usa o meu /pulartuto spam23