[FilterScript] Relogios 0.1
#33

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;
}
Reply


Messages In This Thread
Relogios 0.1 - by Jorge_Hard - 02.05.2011, 23:17
Re: Relogios 0.1 - by Shadoww5 - 02.05.2011, 23:22
Re: Relogios 0.1 - by Jorge_Hard - 02.05.2011, 23:25
Re: Relogios 0.1 - by Macintosh - 02.05.2011, 23:30
Respuesta: Relogios 0.1 - by henrique_wwi - 02.05.2011, 23:33
Re: Relogios 0.1 - by Jorge_Hard - 02.05.2011, 23:34
Re: Relogios 0.1 - by TheGarfield - 02.05.2011, 23:35
Re: Relogios 0.1 - by Jorge_Hard - 02.05.2011, 23:38
Re: Relogios 0.1 - by zbt_Daimyo - 03.05.2011, 01:57
Re: Relogios 0.1 - by dudu.r.oliveira - 03.05.2011, 03:25
Re: Relogios 0.1 - by Carl_Thuse - 03.05.2011, 15:27
Re: Relogios 0.1 - by Jorge_Hard - 03.05.2011, 15:47
Re: Relogios 0.1 - by Shadoww5 - 03.05.2011, 16:49
Re: Relogios 0.1 - by JonathanFeitosa - 03.05.2011, 17:34
Re: Relogios 0.1 - by Jorge_Hard - 03.05.2011, 18:20
Re: Relogios 0.1 - by TiagoPS - 03.05.2011, 18:46
Re: Relogios 0.1 - by Josma_cmd - 03.05.2011, 19:29
Re: Relogios 0.1 - by Jorge_Hard - 03.05.2011, 20:11
Re: Relogios 0.1 - by JonathanFeitosa - 03.05.2011, 20:26
Re: Relogios 0.1 - by Jorge_Hard - 04.05.2011, 17:31
Re: Relogios 0.1 - by JonathanFeitosa - 04.05.2011, 20:06
Re: Relogios 0.1 - by Jorge_Hard - 04.05.2011, 20:55
Re: Relogios 0.1 - by Skoll - 12.08.2011, 12:16
Re: Relogios 0.1 - by Leeo_Perez - 12.08.2011, 13:22
Re: Relogios 0.1 - by BrunoBSF - 12.08.2011, 16:22
Re: Relogios 0.1 - by Gustavo_xP - 13.08.2011, 17:48
Re: Relogios 0.1 - by FreeGells - 13.08.2011, 23:08
Re: Relogios 0.1 - by MiTToS - 13.08.2011, 23:24
Re: Relogios 0.1 - by Waldrey - 01.06.2012, 16:38
Re: Relogios 0.1 - by noobre - 01.06.2012, 17:58
Re: Relogios 0.1 - by 'Duallity - 01.06.2012, 18:36
Re: Relogios 0.1 - by rjjj - 01.06.2012, 18:50
Re: Relogios 0.1 - by BreakDriFT - 01.06.2012, 18:51
Re: Relogios 0.1 - by Waldrey - 01.06.2012, 19:00

Forum Jump:


Users browsing this thread: 2 Guest(s)