[AJUDA] Apertar F e parar anim.
#1

Bom coloquei estes anim no meu servidor

pawn Код:
//==============================Anins===========================================
    if(strcmp("/bebado", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
    return 1;
   }
   
    if(strcmp("/pegardochao", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    return 1;
   }
   
   if(strcmp("/apontararma", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
    return 1;
    }
    if(strcmp("/mascararse", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/apontar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cruzarb", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
    return 1;
   }
    if(strcmp("/deitar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/abaixar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/vomitar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/comer", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/acenar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/passaramao", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cobrar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/desacordado", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fumar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fumar1", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/sentar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/conversar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/xingar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fazeryoga", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/observar", cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }

// Animaзхes de danзas

    if(strcmp("/danзa",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DANCING", "dnce_M_a", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/danзa 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/danзa 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DANCING", "dnce_M_c", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/danзa 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DANCING", "dnce_M_d", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/danзa 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "DANCING", "dnce_M_e", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }

// Animaзхes para gangster

    if(strcmp("/cumprimentar",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GANGS", "hndshkaa", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cumprimentar 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GANGS", "hndshkca", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cumprimentar 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GANGS", "hndshkcb", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/pichar 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GRAFFITI", "graffiti_Chkout", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/pichar",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GRAFFITI", "spraycan_fire", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign1", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign1LH", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign2", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign2LH", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign3", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign3LH", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign4", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 7",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign4LH", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 8",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign5", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/gueto 9",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/ohno",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GANGS", "Invite_No", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/ohyes",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "GANGS", "Invite_Yes", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }

// Animaзхes para bar

    if(strcmp("/bar",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barcustom_get", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barcustom_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barcustom_order", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "BARman_idle", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_bottle", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_give", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_glass", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 7",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_in", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 8",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 9",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "Barserve_order", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/bar 10",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/beber",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "dnk_stndM_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }

// Animaзхes para praia

    if(strcmp("/praia",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/praia 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "Lay_Bac_Loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/praia 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/praia 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "ParkSit_W_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/praia 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "SitnWait_loop_W", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }

// Animaзхes para Policiais, posar com armas, etc.

    if(strcmp("/colt",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "2guns_crouchfire", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "colt45_crouchfire", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "colt45_crouchreload", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "colt45_fire", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "colt45_fire_2hands", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "colt45_reload", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/colt 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COLT45", "sawnoff_reload", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_in", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_loop", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_nod", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_out", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Copbrowse_shake", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_in", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 7",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_nod", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 8",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_out", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 9",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_shake", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 10",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_think", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 11",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_watch", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 12",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "CopTraf_Away", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 13",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "CopTraf_Come", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 14",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "CopTraf_Left", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 15",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "CopTraf_Stop", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 16",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "COP_getoutcar_LHS", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 17",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "COP_getoutcar_LHS", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 18",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "Cop_move_FWD", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 19",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "crm_drgbst_01", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 20",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 21",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "plc_drgbst_01", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/cop 22",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "POLICE", "plc_drgbst_02", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }

// Animaзхes para beijar e blabla

    if(strcmp("/beijar",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "KISSING", "Grlfrd_Kiss_01", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/beijar 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "KISSING", "Grlfrd_Kiss_02", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/beijar 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "KISSING", "Grlfrd_Kiss_03", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }

// Animaзхes para carros

    if(strcmp("/car",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CAR", "Fixn_Car_Loop", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/car 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CAR", "Fixn_Car_Out", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/car 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CAR", "flag_drop", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/car 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CAR", "Sit_relaxed", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/car 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CAR", "Tap_hand", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }

// Animaзхes para sexo hihihi

    if(strcmp("/blowjob",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_START_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_LOOP_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_END_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_START_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_LOOP_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_COUCH_END_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_START_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 7",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_LOOP_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 8",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_LOOP_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 9",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_END_W", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 10",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_START_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 11",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_LOOP_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/blowjob 12",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "BLOWJOBZ", "BJ_STAND_END_P", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }

// Outros anims

    if(strcmp("/crack",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "Bbalbat_Idle_01", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 1",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "Bbalbat_Idle_02", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 2",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 3",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 4",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth3", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 5",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth4", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 6",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckidle1", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 7",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckidle2", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 8",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckidle3", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }
    if(strcmp("/crack 9",cmdtext, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckidle4", 4.0, 0, 0, 0, 1, 0);
    return 1;
    }

// Animaзхes

    if(strcmp("/animaзхes", cmdtext, true) == 0)
    {
    SendClientMessage(playerid,  0xAA3333AA, "<!>Lista de animaзхes:");
    SendClientMessage(playerid,  0xAA3333AA, "/handsup /pegarcel /guardarcel    /bebado /bomba /apontararma /rir /mascararse");
    SendClientMessage(playerid,  0xAA3333AA, "/apontar /cruzarb /deitar /abaixar /vomitar /comer /acenar /passaramao");
    SendClientMessage(playerid,  0xAA3333AA, "/cobrar /desacordado /fumar /fumar1 /sentar /conversar /xingar /fazeryoga");
    SendClientMessage(playerid,  0xAA3333AA, "/observar /danзa [1-4] /cumprimentar /cumprimentar1");
    SendClientMessage(playerid,  0xAA3333AA, "/cumprimentar2 /pichar /pichar1 /gueto [1-9] /ohyes /ohno /bar [1-10] /beber");
    return 1;
    }
    if(strcmp("/animaзхes 1", cmdtext, true) == 0)
    {
    SendClientMessage(playerid, 0xAA3333AA, "<!>Lista de animaзхes:");
    SendClientMessage(playerid, 0xAA3333AA, "/praia [1-4] /colt [1-6] /cop [1-22] /beijar [1-2]  /car [1-4]");
    return 1;
    }
queria que tivesse algum code para apertar f e o anim parar alguem ajuda?
Reply
#2

vai em:

pawn Код:
public OnPlayerKeyStateChange
depois ache ou se nгo tiver, coloque:

pawn Код:
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) //KEY F
E adicione os comandos de parar o anim, EXEMPLO:

pawn Код:
OnPlayerCommandText(playerid,"/pararanim");

o codigo vai ficar o seguinte:

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
            OnPlayerCommandText(playerid,"/pararanim");
        }

+rp ?
Reply
#3

Segundo o seu cуdigo, tambйm dб para fazer assim:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        ClearAnimation(playerid);
}
Reply
#4

leonardoulhoa

seu Negocio esta bugado quando aperto F aparece mensagem de comando Invalido .-.

Hardware

O SEU ESTA DANDO UM ERRO.

pawn Код:
C:\Users\Usuario\Desktop\Script\gamemodes\RP.pwn(1122) : error 017: undefined symbol "ClearAnimation"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

pawn Код:
ClearAnimations(playerid)
Reply
#6

ClearAnimation й uma espйcie de callback ou stock. Ou seja, nгo й uma funзгo "oficial" do SA:MP.
Reply
#7

Quote:
Originally Posted by Adrian Fahrenheit Tepes
Посмотреть сообщение
ClearAnimation й uma espйcie de callback ou stock. Ou seja, nгo й uma funзгo "oficial" do SA:MP.
vocк errou, sу falta o 's' no final, ficando ClearAnimations(playerid);
Reply
#8

HM, й verdade.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)