[FilterScript] Animes
#1

Bom,Nгo tinha nada pra fazer e Fiz isso ae
Estб funcionando corretamente

pawn Код:
/* Por Favor nгo remova os Crйditos */
                        //Obrigado Forum-Samp ^^
                       
#include <a_samp>
 
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
{
        print("\n-----------------------------------------");
        print(" - Script Feito por ThuuGLif3 - Forum Samp");
        print("-------------------------------------------\n");
        return 1;
}
 
public OnFilterScriptExit()
{
        return 1;
}
 
#else
 
main()
{
        print("\n------------------------------------------");
        print(" - Script Feito por ThuuGLif3 - Forum Samp -");
        print("--------------------------------------------\n");
}
 
#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/animes", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF001DFF, " ~~~~~~~~~~ [ FilterScript - Animes ] ~~~~~~~~~~ ");
    SendClientMessage(playerid, 0x2CFF00FF, "• /Creu • /Csaco • /Wave • /Punheta • /RenderSe • ");
    SendClientMessage(playerid, 0x2CFF00FF, "• /Mijar • /Abomba • /Vomitar • /Bebado • /Merda • ");
    SendClientMessage(playerid, 0x2CFF00FF, "• /CruzarBraco • /Deitar • /Casquinha • /Sentar •");
    SendClientMessage(playerid, 0x2CFF00FF, "• /Conversar • /SoObservo • /FodaSe • /PararAnime •");
    SendClientMessage(playerid, 0x2CFF00FF, "• /Fumar • /Marcara •");
    SendClientMessage(playerid, 0xFF001DFF, " ~~~~~~~~~~ [ FilterScript - Animes ] ~~~~~~~~~~ ");
        return 1;
}
   
    if(strcmp("/creu", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid,"CHOPPA","CHOPPA_back",4.1,1,1,1,1,1);
    return 1;
}
    if (strcmp("/mascara", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
    if (strcmp("/csaco", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,1);
    return 1;
}
    if (strcmp("/wave", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
    if (strcmp("/punheta", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
    return 1;
}
    if (strcmp("/mijar", cmdtext, true, 10) == 0)
    {
    SetPlayerSpecialAction(playerid, 68);
    return 1;
}
    if (strcmp("/renderse", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "ROB_BANK","SHP_HandsUp_Scr", 4.0, 0, 1, 1, 1, 0);
     return 1;
}
    if (strcmp("/abomba", cmdtext, true, 10) == 0)
    {
     ClearAnimations(playerid);
     ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
     return 1;
}
    if (strcmp("/vomitar", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/bebado", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
     return 1;
}
    if (strcmp("/merda", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/cruzarbraco", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
     return 1;
}
    if (strcmp("/deitar", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/casquinha", cmdtext, true, 10) == 0) //Anim de meter a mгo da mulher hihi
    {
     ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/sentar", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/conversar", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/soobservo", cmdtext, true, 10) == 0)
    {
     ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
     return 1;
}
    if (strcmp("/fodase", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
    if (strcmp("/fumar", cmdtext, true, 10) == 0)
    {
    ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
    if (strcmp("/pararanime", cmdtext, true, 10) == 0)
    {
    ClearAnimations( playerid );
    return 1;
}
    return 1;
}
Crйditos: ThuuGLif3
Reply
#2

a sua identaзгo e que nao esta boa, ja existem muitas coisas dessas aqui no forum

faзa uma diferente, em textdraw sei la
Reply
#3

Obrigado PT, Mais me explique mais dessa SUA sugestгo... Gostei.
Reply
#4

por exemplo, em textdraw vc cria 1 em que o cara passa com as teclas para cima a para baixo e mostra 1 pre load da anime, ae o cara escolhe qual quer usar..., seria mais um visualizador de animes, mas claro deixar na mesmta tbm os cmd's assim tem 2 coisas em que ve, e quando ja souber o nome e mais facil digitar logo /fumar por exemplo..
Reply
#5

Entendi....
Obrigado pela Sugestгo
Reply
#6

Legalzinho...
Porem nгo inovador, Parabйns ^^
Reply
#7

Este seu "script" nem compila, rs


Код:
.pwn(36) : warning 219: local variable "playerid" shadows a variable at a preceding level
.pwn(47) : warning 217: loose indentation
.pwn(153) : warning 203: symbol is never used: "cmd"
.pwn(153) : warning 203: symbol is never used: "playerid"
Reply
#8

Infelizmente nгo consegui Resolver esses Warnings :/
Reply
#9

Код:
.pwn(36) : warning 219: local variable "playerid" shadows a variable at a preceding level
.pwn(47) : warning 217: loose indentation
.pwn(153) : warning 203: symbol is never used: "cmd"
.pwn(153) : warning 203: symbol is never used: "playerid"
Traduзгo

Код:
Linha(36) : Aviso 219: variavel playerid jб estб definida !
Linha(47) :  Aviso  217: falta de identar seu code !
Linha(153) :  Aviso  203: variavel "cmd" foi criada mais nгo estб sendo usada !
Linha(153) :  Aviso  203: variavel "playerid" foi criada mais nгo estб sendo usada !
xD
Reply
#10

como e que e possivel alguem que n sabe resolver estes warnings fazer este FS, foi vc mesmo que fez?

olha magia deleta la isto

pawn Код:
// --------- News -----------
new cmd[256];
new playerid[100];
// --------- News ----------
e vera como perde alguns
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)