SA-MP Forums Archive
[FilterScript] Relogios 0.1 - 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)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Relogios 0.1 (/showthread.php?tid=252787)

Pages: 1 2


Re: Relogios 0.1 - JonathanFeitosa - 04.05.2011

Arruma Aquela Cйlula.


Re: Relogios 0.1 - Jorge_Hard - 04.05.2011

A depois


Re: Relogios 0.1 - Skoll - 12.08.2011

Excelente, porйm meio que desnecessario e inutil. Seria interessante o relуgio que mostra hora real no canto da tela trocar de acordo com o modelo do objeto(relogio) do pulso.


Re: Relogios 0.1 - Leeo_Perez - 12.08.2011

20/10 muito criativo!


Re: Relogios 0.1 - BrunoBSF - 12.08.2011

MuitoBOm


Re: Relogios 0.1 - Gustavo_xP - 13.08.2011

Parabens Acho que vou usar no meu GM


Re: Relogios 0.1 - FreeGells - 13.08.2011

Gostei !


Re: Relogios 0.1 - MiTToS - 13.08.2011

irei usar num GM que estou fazendo para um cliente, vlw mto bom.


Re: Relogios 0.1 - Waldrey - 01.06.2012

Desculpa por subir o tуpico, eu queria muito esse FILTERSCRIPT se alguem tiver e puder reupar ai.


Re: Relogios 0.1 - noobre - 01.06.2012

Mais um elemento essencial para uma boa pratica de Roleplay, muitos parabйns!


Re: Relogios 0.1 - 'Duallity - 01.06.2012

Waldrey fala com o Jorge,procura ele la no Forum Da SampBrasil


Re: Relogios 0.1 - rjjj - 01.06.2012

Quote:
Originally Posted by Waldrey
Посмотреть сообщение
Desculpa por subir o tуpico, eu queria muito esse FILTERSCRIPT se alguem tiver e puder reupar ai.
Em vez de clicar no link do pastebin, copie-o para a barra de endereзo do seu navegador e tecle Enter .



Espero ter ajudado .


Re: Relogios 0.1 - BreakDriFT - 01.06.2012

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("         @@Sistemas de Relogio@@        ");
    print(" Criado por: Jorge_Hard - [JFS]Jonathan ");
    print("         NAO RETIRE OS CREDITOS         ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n--------------------------------------");
    print("         @@Sistemas de Relogio@@        ");
    print(" Criado por: Jorge_Hard - [JFS]Jonathan ");
    print("         NAO RETIRE OS CREDITOS         ");
    print("--------------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd,"/relogio",true)==0)
{
    new relogio[ 128];
    (relogio) = strtok( cmdtext, idx);
    if( !strlen(relogio) )
    {
        SendClientMessage( playerid, 0xFFF000AA, "Use: /relogio [ 1 - 15 ]");
        return true;
    }
    if( strcmp(relogio,"1", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19039, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "2", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19040, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "3", true ) == 0 )
    {

        SetPlayerAttachedObject( playerid, 0, 19041, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "4", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19042, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "5", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19043, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "6", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19044, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "7", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19045, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "8", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19046, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "9", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19047, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "10", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19048, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "11", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19049, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "12", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19050, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "13", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19051, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "14", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19052, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    if( strcmp(relogio, "15", true ) == 0 )
    {
        SetPlayerAttachedObject( playerid, 0, 19053, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
        return true;
    }
    return 1;
}
    return 0;
}
stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}



Re: Relogios 0.1 - Waldrey - 01.06.2012

Obrigado ai pessoal!