[ajuda]text dranw
#1

Tipo eu vi essse text dranw de entrada no sv mas so quando o player morre ele fica parado ele nun volta pro seu local de spawno que deve ser acertado ai ? Obs: esse e um [FS] que pertence ao JFS MiniGames v3.0 que achei muito legal mas s oque quando o player morrer ele nao volta pro seu lugar de spawn

PHP код:
#include <a_samp>
// Intro script by O.K.Style™ e JFS.
new Text:Intro[12];
public 
OnFilterScriptInit()
{
    
Intro[0] = TextDrawCreate(642.01.0"~n~");
    
TextDrawLetterSize(Intro[0], 0.549.5);
    
TextDrawUseBox(Intro[0], 1);
    
TextDrawBoxColor(Intro[0], 0x000000FF);
    
TextDrawTextSize(Intro[0], -2.00.0);
    
Intro[1] = TextDrawCreate(190.000000190.000000"~n~~n~~n~~n~~n~~n~~p~~h~JFS v3.0");
    
TextDrawFont(Intro[1], 2);
    
TextDrawLetterSize(Intro[1], 0.5700001.799999);
    
Intro[2] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[2], 2);
    
TextDrawColor(Intro[2], 0xFFFFFF22);
    
TextDrawLetterSize(Intro[2], 0.5700001.799999);
    
Intro[3] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[3], 2);
    
TextDrawColor(Intro[3], 0xFFFFFF44);
    
TextDrawLetterSize(Intro[3], 0.5700001.799999);
    
Intro[4] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[4], 2);
    
TextDrawColor(Intro[4], 0xFFFFFF66);
    
TextDrawLetterSize(Intro[4], 0.5700001.799999);
    
Intro[5] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[5], 2);
    
TextDrawColor(Intro[5], 0xFFFFFF88);
    
TextDrawLetterSize(Intro[5], 0.5700001.799999);
    
Intro[6] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[6], 2);
    
TextDrawColor(Intro[6], 0xFFFFFFAA);
    
TextDrawLetterSize(Intro[6], 0.5700001.799999);
    
Intro[7] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[7], 2);
    
TextDrawColor(Intro[7], 0xFFFFFFCC);
    
TextDrawLetterSize(Intro[7], 0.5700001.799999);
    
Intro[8] = TextDrawCreate(310.000000190.000000"~n~~n~~n~~n~~n~~n~Apresenta...");
    
TextDrawFont(Intro[8], 2);
    
TextDrawColor(Intro[8], 0xFFFFFFFF);
    
TextDrawLetterSize(Intro[8], 0.5700001.799999);
    
Intro[9] = TextDrawCreate(190.0202.0".");
    
TextDrawFont(Intro[9], 1);
    
TextDrawLetterSize(Intro[9], 23.2500511.099999);
    
Intro[10] = TextDrawCreate(304.00223.0"~y~~h~~n~~n~~n~~n~~n~~n~~n~~n~~g~JFS MiniGames v3.0");
    
TextDrawFont(Intro[10], 2);
    
TextDrawLetterSize(Intro[10], 0.3400001.099999);
    
Intro[11] = TextDrawCreate(331.0235.0"~h~~n~~n~~n~~n~~n~~n~~n~~n~~y~www.projetosjfs.tk");
    
TextDrawFont(Intro[11], 2);
    
TextDrawLetterSize(Intro[11], 0.3400001.099999);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TogglePlayerSpectating(playeridtrue);
    
ForceClassSelection(playerid);
    
SetPVarInt(playerid"Intro"0);
    
SetTimerEx("ShowIntro"10000"d"playerid);
    return 
1;
}
forward ShowIntro(playerid);
public 
ShowIntro(playerid)
{
    
SetPVarInt(playerid"Intro"GetPVarInt(playerid"Intro") + 1);
    new 
iteration GetPVarInt(playerid"Intro");
    switch(
iteration)
    {
        case 
1:
        {
            for(new 
i11i++)
            {
                
SendClientMessage(playerid, -1"");
            }
            
TextDrawShowForPlayer(playeridIntro[0]);
        }
        case 
2:
        {
            
TextDrawShowForPlayer(playeridIntro[1]);
        }
        case 
3:
        {
            
TextDrawShowForPlayer(playeridIntro[2]);
        }
        case 
4:
        {
            
TextDrawHideForPlayer(playeridIntro[2]);
            
TextDrawShowForPlayer(playeridIntro[3]);
        }
        case 
5:
        {
            
TextDrawHideForPlayer(playeridIntro[3]);
            
TextDrawShowForPlayer(playeridIntro[4]);
        }
        case 
6:
        {
            
TextDrawHideForPlayer(playeridIntro[4]);
            
TextDrawShowForPlayer(playeridIntro[5]);
        }
        case 
7:
        {
            
TextDrawHideForPlayer(playeridIntro[5]);
            
TextDrawShowForPlayer(playeridIntro[6]);
        }
        case 
8:
        {
            
TextDrawHideForPlayer(playeridIntro[6]);
            
TextDrawShowForPlayer(playeridIntro[7]);
        }
        case 
9:
        {
            
TextDrawHideForPlayer(playeridIntro[7]);
            
TextDrawShowForPlayer(playeridIntro[8]);
        }
        case 
10:
        {
            
TextDrawShowForPlayer(playeridIntro[9]);
        }
        case 
11:
        {
            
TextDrawShowForPlayer(playeridIntro[10]);
        }
        case 
12:
        {
            
TextDrawShowForPlayer(playeridIntro[11]);
        }
    }
    if(
GetPVarInt(playerid"Intro") < 10)
    {
        
SetTimerEx("ShowIntro"3000"d"playerid);
    }
    else if(
GetPVarInt(playerid"Intro") < 13)
    {
        
SetTimerEx("ShowIntro"20000"d"playerid);
    }
    else
    {
        for(new 
isizeof(Intro); i++)
        {
            
TextDrawHideForPlayer(playeridIntro[i]);
        }
        
TogglePlayerSpectating(playeridfalse);
        
ForceClassSelection(playerid);
    }
    return 
1;
}
public 
OnFilterScriptExit()
{
    for(new 
isizeof(Intro); i++)
    {
        
TextDrawDestroy(Intro[i]);
    }
    return 
1;

Reply
#2

Man, nгo intendi nada oque vocк perguntou ? pois esse script ele apenas funciona quando o jogador de conecta, pois nгo tem nenhum Dialog ao se conectar nele, entгo coloque desta seguinte forma:

pawn Код:
#include <a_samp>
// Intro script by O.K.Style™ e JFS.
new Text:Intro[12];
public OnFilterScriptInit()
{
    Intro[0] = TextDrawCreate(642.0, 1.0, "~n~");
    TextDrawLetterSize(Intro[0], 0.5, 49.5);
    TextDrawUseBox(Intro[0], 1);
    TextDrawBoxColor(Intro[0], 0x000000FF);
    TextDrawTextSize(Intro[0], -2.0, 0.0);

    Intro[1] = TextDrawCreate(190.000000, 190.000000, "~n~~n~~n~~n~~n~~n~~p~~h~JFS v3.0");
    TextDrawFont(Intro[1], 2);
    TextDrawLetterSize(Intro[1], 0.570000, 1.799999);

    Intro[2] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[2], 2);
    TextDrawColor(Intro[2], 0xFFFFFF22);
    TextDrawLetterSize(Intro[2], 0.570000, 1.799999);

    Intro[3] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[3], 2);
    TextDrawColor(Intro[3], 0xFFFFFF44);
    TextDrawLetterSize(Intro[3], 0.570000, 1.799999);

    Intro[4] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[4], 2);
    TextDrawColor(Intro[4], 0xFFFFFF66);
    TextDrawLetterSize(Intro[4], 0.570000, 1.799999);

    Intro[5] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[5], 2);
    TextDrawColor(Intro[5], 0xFFFFFF88);
    TextDrawLetterSize(Intro[5], 0.570000, 1.799999);

    Intro[6] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[6], 2);
    TextDrawColor(Intro[6], 0xFFFFFFAA);
    TextDrawLetterSize(Intro[6], 0.570000, 1.799999);

    Intro[7] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[7], 2);
    TextDrawColor(Intro[7], 0xFFFFFFCC);
    TextDrawLetterSize(Intro[7], 0.570000, 1.799999);

    Intro[8] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[8], 2);
    TextDrawColor(Intro[8], 0xFFFFFFFF);
    TextDrawLetterSize(Intro[8], 0.570000, 1.799999);

    Intro[9] = TextDrawCreate(190.0, 202.0, ".");
    TextDrawFont(Intro[9], 1);
    TextDrawLetterSize(Intro[9], 23.250051, 1.099999);

    Intro[10] = TextDrawCreate(304.00, 223.0, "~y~~h~~n~~n~~n~~n~~n~~n~~n~~n~~g~JFS MiniGames v3.0");
    TextDrawFont(Intro[10], 2);
    TextDrawLetterSize(Intro[10], 0.340000, 1.099999);

    Intro[11] = TextDrawCreate(331.0, 235.0, "~h~~n~~n~~n~~n~~n~~n~~n~~n~~y~www.projetosjfs.tk");
    TextDrawFont(Intro[11], 2);
    TextDrawLetterSize(Intro[11], 0.340000, 1.099999);

    return 1;
}
public OnPlayerConnect(playerid)
{
    new Entrando[900];
    strins(Entrando,"Proibido:\n",strlen(Entrando));
    strins(Entrando,"\n{F9FAF5}Entrar viado, pois aqui sу entra mulher!\n",strlen(Entrando));
    strins(Entrando,"\nProibido falar sobre homem, somente sobre mulher, aceita ? tem que aceitar, pois so tem uma opiзгo\n",strlen(Entrando));
    ShowPlayerDialog(playerid, 1235, DIALOG_STYLE_MSGBOX, "ENTRANDO",Entrando, "Unica", "");

    TogglePlayerSpectating(playerid, true);
    ForceClassSelection(playerid);
    SetPVarInt(playerid, "Intro", 0);
    SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
    return 1;
}
forward ShowIntro(playerid);
public ShowIntro(playerid)
{
    SetPVarInt(playerid, "Intro", GetPVarInt(playerid, "Intro") + 1);
    new iteration = GetPVarInt(playerid, "Intro");
    switch(iteration)
    {
        case 1:
        {
            for(new i; i < 11; i++)
            {
                SendClientMessage(playerid, -1, "");
            }
            TextDrawShowForPlayer(playerid, Intro[0]);
        }
        case 2:
        {
            TextDrawShowForPlayer(playerid, Intro[1]);
        }
        case 3:
        {
            TextDrawShowForPlayer(playerid, Intro[2]);
        }
        case 4:
        {
            TextDrawHideForPlayer(playerid, Intro[2]);
            TextDrawShowForPlayer(playerid, Intro[3]);
        }
        case 5:
        {
            TextDrawHideForPlayer(playerid, Intro[3]);
            TextDrawShowForPlayer(playerid, Intro[4]);
        }
        case 6:
        {
            TextDrawHideForPlayer(playerid, Intro[4]);
            TextDrawShowForPlayer(playerid, Intro[5]);
        }
        case 7:
        {
            TextDrawHideForPlayer(playerid, Intro[5]);
            TextDrawShowForPlayer(playerid, Intro[6]);
        }
        case 8:
        {
            TextDrawHideForPlayer(playerid, Intro[6]);
            TextDrawShowForPlayer(playerid, Intro[7]);
        }
        case 9:
        {
            TextDrawHideForPlayer(playerid, Intro[7]);
            TextDrawShowForPlayer(playerid, Intro[8]);
        }
        case 10:
        {
            TextDrawShowForPlayer(playerid, Intro[9]);
        }
        case 11:
        {
            TextDrawShowForPlayer(playerid, Intro[10]);
        }
        case 12:
        {
            TextDrawShowForPlayer(playerid, Intro[11]);
        }
    }
    if(GetPVarInt(playerid, "Intro") < 10)
    {
        SetTimerEx("ShowIntro", 300, 0, "d", playerid);
    }
    else if(9 < GetPVarInt(playerid, "Intro") < 13)
    {
        SetTimerEx("ShowIntro", 2000, 0, "d", playerid);
    }
    else
    {
        for(new i; i < sizeof(Intro); i++)
        {
            TextDrawHideForPlayer(playerid, Intro[i]);
        }
        TogglePlayerSpectating(playerid, false);
        ForceClassSelection(playerid);
    }
    return 1;
}
public OnFilterScriptExit()
{
    for(new i; i < sizeof(Intro); i++)
    {
        TextDrawDestroy(Intro[i]);
    }
    return 1;
}
Reply
#3

[QUOTE=StrondA_;1384717]Man, nгo intendi nada oque vocк perguntou ? pois esse script ele apenas funciona quando o jogador de conecta, pois nгo tem nenhum Dialog ao se conectar nele, entгo coloque desta seguinte forma:

[/QUOTE

Tipo quand o player entrar da tudo certin aparece a apresentacao etc mas s oquando o player morrer ja logado ele so ele morre e fica parado no lugar pq quando eu coloco o fs ele morre e fica parado e quando eu tiro o fs ele funfa normal acho que e alguma linha la que ta faznedo isso tipo um respawn pra escolher o skin
Reply
#4

Hб intendi o seu problema, acho que o " ForceClassSelection(playerid); " estб dando conflito, entгo tente o code abaixo gato:
pawn Код:
#include <a_samp>
// Intro script by O.K.Style™ e JFS.
new Text:Intro[12];
public OnFilterScriptInit()
{
    Intro[0] = TextDrawCreate(642.0, 1.0, "~n~");
    TextDrawLetterSize(Intro[0], 0.5, 49.5);
    TextDrawUseBox(Intro[0], 1);
    TextDrawBoxColor(Intro[0], 0x000000FF);
    TextDrawTextSize(Intro[0], -2.0, 0.0);

    Intro[1] = TextDrawCreate(190.000000, 190.000000, "~n~~n~~n~~n~~n~~n~~p~~h~JFS v3.0");
    TextDrawFont(Intro[1], 2);
    TextDrawLetterSize(Intro[1], 0.570000, 1.799999);

    Intro[2] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[2], 2);
    TextDrawColor(Intro[2], 0xFFFFFF22);
    TextDrawLetterSize(Intro[2], 0.570000, 1.799999);

    Intro[3] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[3], 2);
    TextDrawColor(Intro[3], 0xFFFFFF44);
    TextDrawLetterSize(Intro[3], 0.570000, 1.799999);

    Intro[4] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[4], 2);
    TextDrawColor(Intro[4], 0xFFFFFF66);
    TextDrawLetterSize(Intro[4], 0.570000, 1.799999);

    Intro[5] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[5], 2);
    TextDrawColor(Intro[5], 0xFFFFFF88);
    TextDrawLetterSize(Intro[5], 0.570000, 1.799999);

    Intro[6] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[6], 2);
    TextDrawColor(Intro[6], 0xFFFFFFAA);
    TextDrawLetterSize(Intro[6], 0.570000, 1.799999);

    Intro[7] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[7], 2);
    TextDrawColor(Intro[7], 0xFFFFFFCC);
    TextDrawLetterSize(Intro[7], 0.570000, 1.799999);

    Intro[8] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[8], 2);
    TextDrawColor(Intro[8], 0xFFFFFFFF);
    TextDrawLetterSize(Intro[8], 0.570000, 1.799999);

    Intro[9] = TextDrawCreate(190.0, 202.0, ".");
    TextDrawFont(Intro[9], 1);
    TextDrawLetterSize(Intro[9], 23.250051, 1.099999);

    Intro[10] = TextDrawCreate(304.00, 223.0, "~y~~h~~n~~n~~n~~n~~n~~n~~n~~n~~g~JFS MiniGames v3.0");
    TextDrawFont(Intro[10], 2);
    TextDrawLetterSize(Intro[10], 0.340000, 1.099999);

    Intro[11] = TextDrawCreate(331.0, 235.0, "~h~~n~~n~~n~~n~~n~~n~~n~~n~~y~www.projetosjfs.tk");
    TextDrawFont(Intro[11], 2);
    TextDrawLetterSize(Intro[11], 0.340000, 1.099999);

    return 1;
}
public OnPlayerConnect(playerid)
{
    new Entrando[900];
    strins(Entrando,"Proibido:\n",strlen(Entrando));
    strins(Entrando,"\n{F9FAF5}Entrar viado, pois aqui sу entra mulher!\n",strlen(Entrando));
    strins(Entrando,"\nProibido falar sobre homem, somente sobre mulher, aceita ? tem que aceitar, pois so tem uma opiзгo\n",strlen(Entrando));
    ShowPlayerDialog(playerid, 1235, DIALOG_STYLE_MSGBOX, "ENTRANDO",Entrando, "Unica", "");

    TogglePlayerSpectating(playerid, true);
    SetPVarInt(playerid, "Intro", 0);
    SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
    return 1;
}
forward ShowIntro(playerid);
public ShowIntro(playerid)
{
    SetPVarInt(playerid, "Intro", GetPVarInt(playerid, "Intro") + 1);
    new iteration = GetPVarInt(playerid, "Intro");
    switch(iteration)
    {
        case 1:
        {
            for(new i; i < 11; i++)
            {
                SendClientMessage(playerid, -1, "");
            }
            TextDrawShowForPlayer(playerid, Intro[0]);
        }
        case 2:
        {
            TextDrawShowForPlayer(playerid, Intro[1]);
        }
        case 3:
        {
            TextDrawShowForPlayer(playerid, Intro[2]);
        }
        case 4:
        {
            TextDrawHideForPlayer(playerid, Intro[2]);
            TextDrawShowForPlayer(playerid, Intro[3]);
        }
        case 5:
        {
            TextDrawHideForPlayer(playerid, Intro[3]);
            TextDrawShowForPlayer(playerid, Intro[4]);
        }
        case 6:
        {
            TextDrawHideForPlayer(playerid, Intro[4]);
            TextDrawShowForPlayer(playerid, Intro[5]);
        }
        case 7:
        {
            TextDrawHideForPlayer(playerid, Intro[5]);
            TextDrawShowForPlayer(playerid, Intro[6]);
        }
        case 8:
        {
            TextDrawHideForPlayer(playerid, Intro[6]);
            TextDrawShowForPlayer(playerid, Intro[7]);
        }
        case 9:
        {
            TextDrawHideForPlayer(playerid, Intro[7]);
            TextDrawShowForPlayer(playerid, Intro[8]);
        }
        case 10:
        {
            TextDrawShowForPlayer(playerid, Intro[9]);
        }
        case 11:
        {
            TextDrawShowForPlayer(playerid, Intro[10]);
        }
        case 12:
        {
            TextDrawShowForPlayer(playerid, Intro[11]);
        }
    }
    if(GetPVarInt(playerid, "Intro") < 10)
    {
        SetTimerEx("ShowIntro", 300, 0, "d", playerid);
    }
    else if(9 < GetPVarInt(playerid, "Intro") < 13)
    {
        SetTimerEx("ShowIntro", 2000, 0, "d", playerid);
    }
    else
    {
        for(new i; i < sizeof(Intro); i++)
        {
            TextDrawHideForPlayer(playerid, Intro[i]);
        }
        TogglePlayerSpectating(playerid, false);
        ForceClassSelection(playerid);
    }
    return 1;
}
public OnFilterScriptExit()
{
    for(new i; i < sizeof(Intro); i++)
    {
        TextDrawDestroy(Intro[i]);
    }
    return 1;
}
Reply
#5

aki ele fica parado ainda eu so queria tirar esse negocio do spwn que mostra ai na tela apaixo

Reply
#6

Se nгo dar agora, o problema й no GM!
pawn Код:
#include <a_samp>
// Intro script by O.K.Style™ e JFS.
new Text:Intro[12];
public OnFilterScriptInit()
{
    Intro[0] = TextDrawCreate(642.0, 1.0, "~n~");
    TextDrawLetterSize(Intro[0], 0.5, 49.5);
    TextDrawUseBox(Intro[0], 1);
    TextDrawBoxColor(Intro[0], 0x000000FF);
    TextDrawTextSize(Intro[0], -2.0, 0.0);

    Intro[1] = TextDrawCreate(190.000000, 190.000000, "~n~~n~~n~~n~~n~~n~~p~~h~JFS v3.0");
    TextDrawFont(Intro[1], 2);
    TextDrawLetterSize(Intro[1], 0.570000, 1.799999);

    Intro[2] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[2], 2);
    TextDrawColor(Intro[2], 0xFFFFFF22);
    TextDrawLetterSize(Intro[2], 0.570000, 1.799999);

    Intro[3] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[3], 2);
    TextDrawColor(Intro[3], 0xFFFFFF44);
    TextDrawLetterSize(Intro[3], 0.570000, 1.799999);

    Intro[4] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[4], 2);
    TextDrawColor(Intro[4], 0xFFFFFF66);
    TextDrawLetterSize(Intro[4], 0.570000, 1.799999);

    Intro[5] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[5], 2);
    TextDrawColor(Intro[5], 0xFFFFFF88);
    TextDrawLetterSize(Intro[5], 0.570000, 1.799999);

    Intro[6] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[6], 2);
    TextDrawColor(Intro[6], 0xFFFFFFAA);
    TextDrawLetterSize(Intro[6], 0.570000, 1.799999);

    Intro[7] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[7], 2);
    TextDrawColor(Intro[7], 0xFFFFFFCC);
    TextDrawLetterSize(Intro[7], 0.570000, 1.799999);

    Intro[8] = TextDrawCreate(310.000000, 190.000000, "~n~~n~~n~~n~~n~~n~Apresenta...");
    TextDrawFont(Intro[8], 2);
    TextDrawColor(Intro[8], 0xFFFFFFFF);
    TextDrawLetterSize(Intro[8], 0.570000, 1.799999);

    Intro[9] = TextDrawCreate(190.0, 202.0, ".");
    TextDrawFont(Intro[9], 1);
    TextDrawLetterSize(Intro[9], 23.250051, 1.099999);

    Intro[10] = TextDrawCreate(304.00, 223.0, "~y~~h~~n~~n~~n~~n~~n~~n~~n~~n~~g~JFS MiniGames v3.0");
    TextDrawFont(Intro[10], 2);
    TextDrawLetterSize(Intro[10], 0.340000, 1.099999);

    Intro[11] = TextDrawCreate(331.0, 235.0, "~h~~n~~n~~n~~n~~n~~n~~n~~n~~y~www.projetosjfs.tk");
    TextDrawFont(Intro[11], 2);
    TextDrawLetterSize(Intro[11], 0.340000, 1.099999);

    return 1;
}
public OnPlayerConnect(playerid)
{
    new Entrando[900];
    strins(Entrando,"Proibido:\n",strlen(Entrando));
    strins(Entrando,"\n{F9FAF5}Entrar viado, pois aqui sу entra mulher!\n",strlen(Entrando));
    strins(Entrando,"\nProibido falar sobre homem, somente sobre mulher, aceita ? tem que aceitar, pois so tem uma opiзгo\n",strlen(Entrando));
    ShowPlayerDialog(playerid, 1235, DIALOG_STYLE_MSGBOX, "ENTRANDO",Entrando, "Unica", "");
    SetPVarInt(playerid, "Intro", 0);
    SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
    return 1;
}
forward ShowIntro(playerid);
public ShowIntro(playerid)
{
    SetPVarInt(playerid, "Intro", GetPVarInt(playerid, "Intro") + 1);
    new iteration = GetPVarInt(playerid, "Intro");
    switch(iteration)
    {
        case 1:
        {
            for(new i; i < 11; i++)
            {
                SendClientMessage(playerid, -1, "");
            }
            TextDrawShowForPlayer(playerid, Intro[0]);
        }
        case 2:
        {
            TextDrawShowForPlayer(playerid, Intro[1]);
        }
        case 3:
        {
            TextDrawShowForPlayer(playerid, Intro[2]);
        }
        case 4:
        {
            TextDrawHideForPlayer(playerid, Intro[2]);
            TextDrawShowForPlayer(playerid, Intro[3]);
        }
        case 5:
        {
            TextDrawHideForPlayer(playerid, Intro[3]);
            TextDrawShowForPlayer(playerid, Intro[4]);
        }
        case 6:
        {
            TextDrawHideForPlayer(playerid, Intro[4]);
            TextDrawShowForPlayer(playerid, Intro[5]);
        }
        case 7:
        {
            TextDrawHideForPlayer(playerid, Intro[5]);
            TextDrawShowForPlayer(playerid, Intro[6]);
        }
        case 8:
        {
            TextDrawHideForPlayer(playerid, Intro[6]);
            TextDrawShowForPlayer(playerid, Intro[7]);
        }
        case 9:
        {
            TextDrawHideForPlayer(playerid, Intro[7]);
            TextDrawShowForPlayer(playerid, Intro[8]);
        }
        case 10:
        {
            TextDrawShowForPlayer(playerid, Intro[9]);
        }
        case 11:
        {
            TextDrawShowForPlayer(playerid, Intro[10]);
        }
        case 12:
        {
            TextDrawShowForPlayer(playerid, Intro[11]);
        }
    }
    if(GetPVarInt(playerid, "Intro") < 10)
    {
        SetTimerEx("ShowIntro", 300, 0, "d", playerid);
    }
    else if(9 < GetPVarInt(playerid, "Intro") < 13)
    {
        SetTimerEx("ShowIntro", 2000, 0, "d", playerid);
    }
    else
    {
        for(new i; i < sizeof(Intro); i++)
        {
            TextDrawHideForPlayer(playerid, Intro[i]);
        }
        TogglePlayerSpectating(playerid, false);
        ForceClassSelection(playerid);
    }
    return 1;
}
public OnFilterScriptExit()
{
    for(new i; i < sizeof(Intro); i++)
    {
        TextDrawDestroy(Intro[i]);
    }
    return 1;
}
Reply
#7

nao funfou continua morto e parado no mesmo laugas igual a primeira imagem laa.Tipo man tem como fazer uma dessa mas so que comun mesmo pq o dele e massa aprece a tela preta ao logar alguem sabe fazer num fs que depois de logar nao dar bug ao morrer ?
Reply
#8

ALGUEM SABE ?
Reply
#9

Aprende o basico do pawn antes de tentar sу largar o FS...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)