SA-MP Forums Archive
Help with Anims - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with Anims (/showthread.php?tid=312937)



Help with Anims - Jaber_Brown - 23.01.2012

I got this Code


pawn Код:
//===============================[Anim System]=================================================

    if(strcmp(cmd, "/animlist", true) == 0) {
        SendClientMessage(playerid,COLOR_YELLOW,"|__  Project State Roleplay Anim List __|");
        SendClientMessage(playerid,COLOR_YELLOW2,"/handsup, /dance, /rap, /wankoff, /strip, /sexy, /bj, /cellin, /cellout, /lean, /piss, /follow");
        SendClientMessage(playerid,COLOR_YELLOW2,"/greet, /injured, /injured2, /hitch, /bitchslap, /cpr, /gsign1, /gsign2, /gsign3, /gsign4, /gsign5, /gift, /getup");
        SendClientMessage(playerid,COLOR_YELLOW2,"/chairsit, /stand, /slapped, /slapass, /drunk, /gwalk, /gwalk2, /mwalk, /fwalk, /celebrate, /celebrate2, /win, /win2");
        SendClientMessage(playerid,COLOR_YELLOW2,"/yes, /deal, /deal2, /thankyou, /invite1, /invite2, /sit, /scratch, /bomb, /getarrested, /laugh, /lookout, /robman");
        SendClientMessage(playerid,COLOR_YELLOW2,"/crossarms, /crossarms2, /crossarms3, /lay, /cover, /vomit, /eat, /wave, /crack, /crack2, /smokem, /smokef, /msit, /fsit");
        SendClientMessage(playerid,COLOR_YELLOW2,"/chat, /fucku, /taichi, /chairsit, /relax, /bat1, /bat2, /bat3, /bat4, /bat5, /nod, /cry1, /cry2, /chant, /carsmoke, /aim");
        SendClientMessage(playerid,COLOR_YELLOW2,"/gang1, /gang2, /gang3, /gang4, /gang5, /gang6, /gang7, /bed1, /bed2, /bed3, /bed4, /carsit, /carsit2, /stretch, /angry");
        SendClientMessage(playerid,COLOR_YELLOW2,"/kiss1, /kiss2, /kiss3, /kiss4, /kiss5, /kiss6, /kiss7, /kiss8, /exhausted, /ghand1, /ghand2, /ghand3, /ghand4, /ghand5");
        SendClientMessage(playerid,COLOR_YELLOW,"Type /animlist2, For the rest of the list.");
        return 1;
    }

    if(strcmp(cmd, "/animlist2", true) == 0) {
        SendClientMessage(playerid,COLOR_YELLOW,"|__ Project State Roleplay Anim List 2 __|");
        SendClientMessage(playerid,COLOR_YELLOW2,"/basket1, /basket2, /basket3, /basket4, /basket5, /basket6, /akick, /box, /cockgun");
        SendClientMessage(playerid,COLOR_YELLOW2,"/bar1, /bar2, /bar3, /bar4, /lay2, /liftup, /putdown, /die, /joint, /die2, /aim2");
        SendClientMessage(playerid,COLOR_YELLOW2,"/benddown, /checkout");
        return 1;
    }

    if(strcmp(cmd, "/handsup", true) == 0)
    {
        if(PlayerInfo[playerid][pJailed] == 2)
        {
            SendClientMessage(playerid, COLOR_GREY, "You cannot do this right now!");
            return 1;
        }
        if(PlayerCuffed[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "You cannot do this right now!");
            return 1;
        }
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
        return 1;
    }

    if(strcmp(cmd,"/stopani",true) == 0 || strcmp(cmd,"/stopanim",true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
        }
        return 1;
    }

    if(strcmp(cmd, "/dance", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /dance [style 1-4]");
                return 1;
            }

            dancestyle = strval(tmp);
            if(dancestyle < 1 || dancestyle > 4) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /dance [style 1-4]");
                return 1;
            }

            if(dancestyle == 1) {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
            } else if(dancestyle == 2) {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
            } else if(dancestyle == 3) {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
            } else if(dancestyle == 4) {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
            }
            return 1;
        }

    if(strcmp(cmd, "/rap", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /rap [style 1-3]");
                return 1;
            }

            rapstyle = strval(tmp);
            if(rapstyle < 1 || rapstyle > 3) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /rap [style 1-3]");
                return 1;
            }

            if(rapstyle == 1) {
            ApplyAnimationEx(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
            } else if(rapstyle == 2) {
            ApplyAnimationEx(playerid,"RAPPING","RAP_B_Loop",4.0,1,1,1,1,0);
            } else if(rapstyle == 3) {
            ApplyAnimationEx(playerid,"RAPPING","RAP_C_Loop",4.0,1,1,1,1,0);
            }
            return 1;
        }

    if(strcmp(cmd, "/wankoff", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /wankoff [style 1-3]");
                return 1;
            }

            wankstyle = strval(tmp);
            if(wankstyle < 1 || wankstyle > 3) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /wankoff [style 1-3]");
                return 1;
            }

            if(wankstyle == 1) {
            ApplyAnimationEx(playerid,"PAULNMAC","wank_in",4.0,1,1,1,1,0);
            } else if(wankstyle == 2) {
            ApplyAnimationEx(playerid,"PAULNMAC","wank_loop",4.0,1,1,1,1,0);
            } else if(wankstyle == 3) {
            ApplyAnimationEx(playerid,"PAULNMAC","wank_out",4.0,1,1,1,1,0);
            }
            return 1;
        }

    if(strcmp(cmd, "/strip", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /strip [style 1-7]");
                return 1;
            }

            stripstyle = strval(tmp);
            if(stripstyle < 1 || stripstyle > 7) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /strip [style 1-7]");
                return 1;
            }

            if(stripstyle == 1) {
            ApplyAnimationEx(playerid,"STRIP","strip_A",4.0,1,1,1,1,0);
            } else if(stripstyle == 2) {
            ApplyAnimationEx(playerid,"STRIP","strip_B",4.0,1,1,1,1,0);
            } else if(stripstyle == 3) {
            ApplyAnimationEx(playerid,"STRIP","strip_C",4.0,1,1,1,1,0);
            } else if(stripstyle == 4) {
            ApplyAnimationEx(playerid,"STRIP","strip_D",4.0,1,1,1,1,0);
            } else if(stripstyle == 5) {
            ApplyAnimationEx(playerid,"STRIP","strip_E",4.0,1,1,1,1,0);
            } else if(stripstyle == 6) {
            ApplyAnimationEx(playerid,"STRIP","strip_F",4.0,1,1,1,1,0);
            } else if(stripstyle == 7) {
            ApplyAnimationEx(playerid,"STRIP","strip_G",4.0,1,1,1,1,0);
            }
            return 1;
        }

    if(strcmp(cmd, "/sexy", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /sexy [style 1-8]");
                return 1;
            }

            sexstyle = strval(tmp);
            if(sexstyle < 1 || sexstyle > 8) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /sexy [style 1-8]");
                return 1;
            }

            if(sexstyle == 1) {
            ApplyAnimationEx(playerid,"SNM","SPANKING_IDLEW",4.1,0,1,1,1,1);
            } else if(sexstyle == 2) {
            ApplyAnimationEx(playerid,"SNM","SPANKING_IDLEP",4.1,0,1,1,1,1);
            } else if(sexstyle == 3) {
            ApplyAnimationEx(playerid,"SNM","SPANKINGW",4.1,0,1,1,1,1);
            } else if(sexstyle == 4) {
            ApplyAnimationEx(playerid,"SNM","SPANKINGP",4.1,0,1,1,1,1);
            } else if(sexstyle == 5) {
            ApplyAnimationEx(playerid,"SNM","SPANKEDW",4.1,0,1,1,1,1);
            } else if(sexstyle == 6) {
            ApplyAnimationEx(playerid,"SNM","SPANKEDP",4.1,0,1,1,1,1);
            } else if(sexstyle == 7) {
            ApplyAnimationEx(playerid,"SNM","SPANKING_ENDW",4.1,0,1,1,1,1);
            } else if(sexstyle == 8) {
            ApplyAnimationEx(playerid,"SNM","SPANKING_ENDP",4.1,0,1,1,1,1);
            }
            return 1;
        }

    if(strcmp(cmd, "/bj", true) == 0) {

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /bj [style 1-12]");
                return 1;
            }

            bjstyle = strval(tmp);
            if(bjstyle < 1 || bjstyle > 12) {
                SendClientMessage(playerid,0xFF0000FF,"Usage: /bj [style 1-12]");
                return 1;
            }

            if(bjstyle == 1) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_START_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 2) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_START_W",4.1,0,1,1,1,1);
            } else if(bjstyle == 3) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 4) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W",4.1,0,1,1,1,1);
            } else if(bjstyle == 5) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_END_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 6) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_COUCH_END_W",4.1,0,1,1,1,1);
            } else if(bjstyle == 7) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_START_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 8) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_START_W",4.1,0,1,1,1,1);
            } else if(bjstyle == 9) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_LOOP_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 10) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_LOOP_W",4.1,0,1,1,1,1);
            } else if(bjstyle == 11) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_END_P",4.1,0,1,1,1,1);
            } else if(bjstyle == 12) {
            ApplyAnimationEx(playerid,"BLOWJOBZ","BJ_STAND_END_W",4.1,0,1,1,1,1);
            }
            return 1;
        }

    if(strcmp(cmd, "/cellin", true) == 0) {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
        return 1;
    }

    if(strcmp(cmd, "/cellout", true) == 0) {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
        return 1;
    }

    if(strcmp(cmd, "/lean", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","leanIDLE", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/piss", true) == 0) {
        SetPlayerSpecialAction(playerid, 68);
        return 1;
    }

    if(strcmp(cmd, "/follow", true) == 0) {
        ApplyAnimationEx(playerid,"WUZI","Wuzi_follow",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/greet", true) == 0) {
        ApplyAnimationEx(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/stand", true) == 0) {
        ApplyAnimationEx(playerid,"WUZI","Wuzi_stand_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/injured2", true) == 0) {
        ApplyAnimationEx(playerid,"SWAT","gnstwall_injurd", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/hitch", true) == 0) {
        ApplyAnimationEx(playerid,"MISC","Hiker_Pose", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bitchslap", true) == 0) {
        ApplyAnimationEx(playerid,"MISC","bitchslap",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/cpr", true) == 0) {
        ApplyAnimationEx(playerid,"MEDIC","CPR", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/gsign1", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign1",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gsign2", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign2",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gsign3", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign3",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gsign4", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign4",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gsign5", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign5",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gift", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","gift_give",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/chairsit", true) == 0) {
        ApplyAnimationEx(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/injured", true) == 0) {
        ApplyAnimationEx(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/slapped", true) == 0) {
        ApplyAnimationEx(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/slapass", true) == 0) {
        ApplyAnimationEx(playerid,"SWEET","sweet_ass_slap",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/drunk", true) == 0) {
        ApplyAnimationEx(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/skate", true) == 0)
    {
        if(PlayerInfo[playerid][pSkate] == 1)
        {
            ApplyAnimationEx(playerid,"SKATE","skate_run",4.1,1,1,1,1,1);
        }
        else
        {
            SendClientMessage(playerid,COLOR_GREY,"You dont have a pair of roller skates, get some at the store.");
        }
        return 1;
    }

    if(strcmp(cmd, "/gwalk", true) == 0) {
        ApplyAnimationEx(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/gwalk2", true) == 0) {
        ApplyAnimationEx(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/limp", true) == 0) {
        ApplyAnimationEx(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/eatsit", true) == 0) {
        ApplyAnimationEx(playerid,"FOOD","FF_Sit_Loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/celebrate", true) == 0) {
        ApplyAnimationEx(playerid,"benchpress","gym_bp_celebrate", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/win", true) == 0) {
        ApplyAnimationEx(playerid,"CASINO","cards_win", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/win2", true) == 0) {
        ApplyAnimationEx(playerid,"CASINO","Roulette_win", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/yes", true) == 0) {
        ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/deal2", true) == 0) {
        ApplyAnimationEx(playerid,"DEALER","DRUGS_BUY", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/thankyou", true) == 0) {
        ApplyAnimationEx(playerid,"FOOD","SHP_Thank", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/invite1", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","Invite_Yes",4.1,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/invite2", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","Invite_No",4.1,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/celebrate2", true) == 0) {
        ApplyAnimationEx(playerid,"GYMNASIUM","gym_tread_celebrate", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/sit", true) == 0) {
        ApplyAnimationEx(playerid,"INT_OFFICE","OFF_Sit_Type_Loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/scratch", true) == 0) {
        ApplyAnimationEx(playerid,"MISC","Scratchballs_01", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if (strcmp("/bomb", cmdtext, true) == 0) {
        ClearAnimations(playerid);
        ApplyAnimationEx(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
        return 1;
    }

    if (strcmp("/getarrested", cmdtext, true, 7) == 0) {
        ApplyAnimationEx(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
        return 1;
    }

    if (strcmp("/laugh", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
        return 1;
    }

    if (strcmp("/lookout", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
        return 1;
    }

    if (strcmp("/robman", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
        return 1;
    }

    if (strcmp("/crossarms", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); // Arms crossed
        return 1;
    }

    if (strcmp("/crossarms2", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "DEALER", "DEALER_IDLE", 4.0, 0, 1, 1, 1, -1); // Arms crossed 2
        return 1;
    }

    if (strcmp("/crossarms3", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "DEALER", "DEALER_IDLE_01", 4.0, 0, 1, 1, 1, -1); // Arms crossed 3
        return 1;
    }

    if (strcmp("/lay", cmdtext, true, 6) == 0) {
        ApplyAnimationEx(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
        return 1;
    }

    if (strcmp("/vomit", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
        return 1;
    }

    if (strcmp("/eat", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
        return 1;
    }

    if (strcmp("/wave", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
        return 1;
    }

    if (strcmp("/deal", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "DEALER", "DEALER_DEAL", 3.0, 0, 0, 0, 0, 0); // Deal Drugs
        return 1;
    }

    if (strcmp("/crack", cmdtext, true, 6) == 0) {
        ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
        return 1;
    }

    if (strcmp("/smokem", cmdtext, true, 4) == 0) {
        ApplyAnimationEx(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Smoke
        return 1;
    }

    if (strcmp("/smokef", cmdtext, true) == 0) {
        ApplyAnimationEx(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Female Smoking
        return 1;
    }

    if (strcmp("/msit", cmdtext, true, 4) == 0) {
        ApplyAnimationEx(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Male Sit
        return 1;
    }

    if (strcmp("/fsit", cmdtext, true, 4) == 0) {
        ApplyAnimationEx(playerid,"BEACH", "ParkSit_W_loop", 4.0, 1, 0, 0, 0, 0); // Female Sit
        return 1;
    }

    if(strcmp(cmd, "/chat", true) == 0) {
        ApplyAnimationEx(playerid,"PED","IDLE_CHAT",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/fucku", true) == 0) {
        ApplyAnimationEx(playerid,"PED","fucku",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/taichi", true) == 0) {
        ApplyAnimationEx(playerid,"PARK","Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/chairsit", true) == 0) {
        ApplyAnimationEx(playerid,"BAR","dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/relax", true) == 0) {
        ApplyAnimationEx(playerid,"BEACH","Lay_Bac_Loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bat1", true) == 0) {
        ApplyAnimationEx(playerid,"BASEBALL","Bat_IDLE", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bat2", true) == 0) {
        ApplyAnimationEx(playerid,"BASEBALL","Bat_M", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bat3", true) == 0) {
        ApplyAnimationEx(playerid,"BASEBALL","BAT_PART", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bat4", true) == 0) {
        ApplyAnimationEx(playerid,"CRACK","Bbalbat_Idle_01", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bat5", true) == 0) {
        ApplyAnimationEx(playerid,"CRACK","Bbalbat_Idle_02", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/nod", true) == 0) {
        ApplyAnimationEx(playerid,"COP_AMBIENT","Coplook_nod",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang1", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkaa",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang2", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang3", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkca",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang4", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkcb",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang5", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang6", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/gang7", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/cry1", true) == 0) {
        ApplyAnimationEx(playerid,"GRAVEYARD","mrnF_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/cry2", true) == 0) {
        ApplyAnimationEx(playerid,"GRAVEYARD","mrnM_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bed1", true) == 0) {
        ApplyAnimationEx(playerid,"INT_HOUSE","BED_In_L",4.1,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/bed2", true) == 0) {
        ApplyAnimationEx(playerid,"INT_HOUSE","BED_In_R",4.1,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/bed3", true) == 0) {
        ApplyAnimationEx(playerid,"INT_HOUSE","BED_Loop_L", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/bed4", true) == 0) {
        ApplyAnimationEx(playerid,"INT_HOUSE","BED_Loop_R", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/kiss2", true) == 0) {
        ApplyAnimationEx(playerid,"BD_FIRE","Grlfrd_Kiss_03",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss3", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Grlfrd_Kiss_01",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss4", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Grlfrd_Kiss_02",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss5", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Grlfrd_Kiss_03",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss6", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Playa_Kiss_01",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss7", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Playa_Kiss_02",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/kiss8", true) == 0) {
        ApplyAnimationEx(playerid,"KISSING","Playa_Kiss_03",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/carsit", true) == 0) {
        ApplyAnimationEx(playerid,"CAR","Tap_hand", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/carsit2", true) == 0) {
        ApplyAnimationEx(playerid,"LOWRIDER","Sit_relaxed", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/fwalk", true) == 0) {
        ApplyAnimationEx(playerid,"ped","WOMAN_walksexy",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/mwalk", true) == 0) {
        ApplyAnimationEx(playerid,"ped","WALK_player",4.1,1,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/stretch", true) == 0) {
        ApplyAnimationEx(playerid,"PLAYIDLES","stretch",4.0,0,0,0,0,0);
        return 1;
    }

    if(strcmp(cmd, "/chant", true) == 0) {
        ApplyAnimationEx(playerid,"RIOT","RIOT_CHANT", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/angry", true) == 0) {
        ApplyAnimationEx(playerid,"RIOT","RIOT_ANGRY",4.0,0,0,0,0,0);
        return 1;
    }

    if (strcmp("/crack2", cmdtext, true, 6) == 0) {
        ApplyAnimationEx(playerid, "CRACK", "crckidle2", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }

    if(strcmp(cmd, "/ghand1", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign1LH",4.0,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/ghand2", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign2LH",4.0,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/ghand3", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign3LH",4.0,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/ghand4", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign4LH",4.0,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/ghand5", true) == 0) {
        ApplyAnimationEx(playerid,"GHANDS","gsign5LH",4.0,0,1,1,1,1);
        return 1;
    }

    if(strcmp(cmd, "/exhausted", true) == 0) {
        ApplyAnimationEx(playerid,"FAT","IDLE_tired", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/carsmoke", true) == 0) {
        ApplyAnimationEx(playerid,"PED","Smoke_in_car", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/aim", true) == 0) {
        ApplyAnimationEx(playerid,"PED","gang_gunstand", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/getup", true) == 0) {
        ApplyAnimationEx(playerid,"PED","getup",4.0,0,0,0,0,0);
        return 1;
    }
    if(strcmp(cmd, "/basket1", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_def_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/basket2", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_idleloop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/basket3", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0);
        return 1;
    }
    if(strcmp(cmd, "/basket4", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_Jump_Shot",4.0,0,0,0,0,0);
        return 1;
    }
    if(strcmp(cmd, "/basket5", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_Dnk",4.1,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/basket6", true) == 0) {
        ApplyAnimationEx(playerid,"BSKTBALL","BBALL_run",4.1,1,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/akick", true) == 0) {
        ApplyAnimationEx(playerid,"FIGHT_E","FightKick",4.0,0,0,0,0,0);
        return 1;
    }
    if(strcmp(cmd, "/box", true) == 0) {
        ApplyAnimationEx(playerid,"GYMNASIUM","gym_shadowbox",4.1,1,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/cockgun", true) == 0) {
        ApplyAnimationEx(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/bar1", true) == 0) {
        ApplyAnimationEx(playerid, "BAR", "Barcustom_get", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/bar2", true) == 0) {
        ApplyAnimationEx(playerid, "BAR", "Barcustom_order", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/bar3", true) == 0) {
        ApplyAnimationEx(playerid, "BAR", "Barserve_give", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/bar4", true) == 0) {
        ApplyAnimationEx(playerid, "BAR", "Barserve_glass", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if (strcmp("/lay2", cmdtext, true, 6) == 0) {
        ApplyAnimationEx(playerid,"BEACH", "SitnWait_loop_W", 4.0, 1, 0, 0, 0, 0); // Lay down
        return 1;
    }
    if(strcmp(cmd, "/liftup", true) == 0) {
        ApplyAnimationEx(playerid, "CARRY", "liftup", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/putdown", true) == 0) {
        ApplyAnimationEx(playerid, "CARRY", "putdwn", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/joint", true) == 0) {
        ApplyAnimationEx(playerid,"GANGS","smkcig_prtl",4.0,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/die", true) == 0) {
        ApplyAnimationEx(playerid,"KNIFE","KILL_Knife_Ped_Die",4.1,0,1,1,1,1);
        return 1;
    }
    if(strcmp(cmd, "/shakehead", true) == 0) {
        ApplyAnimationEx(playerid, "MISC", "plyr_shkhead", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/shakehead", true) == 0) {
        ApplyAnimationEx(playerid, "MISC", "plyr_shkhead", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/die2", true) == 0) {
        ApplyAnimationEx(playerid, "PARACHUTE", "FALL_skyDive_DIE", 4.0, 0, 1, 1, 1, -1);
        return 1;
    }
    if(strcmp(cmd, "/aim2", true) == 0) {
        ApplyAnimationEx(playerid, "SHOP", "SHP_Gun_Aim", 4.0, 0, 1, 1, 1, -1);
        return 1;
    }
    if(strcmp(cmd, "/benddown", true) == 0) {
        ApplyAnimationEx(playerid, "BAR", "Barserve_bottle", 4.0, 0, 0, 0, 0, 0);
        return 1;
    }
    if(strcmp(cmd, "/checkout", true) == 0) {
        ApplyAnimation(playerid, "GRAFFITI", "graffiti_Chkout", 4.0, 0, 0, 0, 0, 0);
        return 1;
    }

//===============================
When i Compile i get this

Код:
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(124) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(135) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(138) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(143) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(146) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(148) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(151) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(153) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(156) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(159) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(162) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(164) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(168) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(171) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(174) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(175) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(177) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(180) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(181) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(183) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(186) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(188) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(190) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(192) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(195) : error 010: invalid function or declaration
C:\DOCUME~1\Jaber\Bureau\BASENO~1\GAMEMO~1\Gamemode.pwn(198) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: Help with Anims - SchurmanCQC - 23.01.2012

You probably don't have
ApplyAnimationEx()
defined.


Re : Help with Anims - Jaber_Brown - 23.01.2012

I guess so , how i define it ? Srry im new


Re: Help with Anims - lordturhan - 23.01.2012

Use zcmd -.-


Re : Help with Anims - Jaber_Brown - 23.01.2012

Im already using it !


Re: Help with Anims - Thedya - 23.01.2012

if(strcmp(cmd, "/animlist", true) == 0) {

if(strcmp(cmd text, "/animlist", true) == 0) {


Re: Help with Anims - MAVERICKS - 23.01.2012

did you add pragma tabsize's & pragma parametres & Includes??!Just update includes or plugins or just put pragma's if you don't put them !