Nazi Animation Code PLEASE
#6

Its Dance Animations, not Nazi
and it is

pawn Код:
if(strcmp(cmd, "/dance", true) == 0) {
            new tmp[256];

            // Get the dance style param
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp) || strlen(tmp) > 2) {
                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;
    }

    return 0;
}
Reply


Messages In This Thread
Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 05:34
Re: Nazi Animation Code PLEASE - by Medardo4Life - 02.12.2011, 05:36
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 05:39
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 08:14
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 14:09
Re: Nazi Animation Code PLEASE - by Neo Karls - 02.12.2011, 14:21
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 14:26
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 14:41
Re: Nazi Animation Code PLEASE - by Neo Karls - 02.12.2011, 14:41
Re: Nazi Animation Code PLEASE - by rido1998 - 02.12.2011, 14:52

Forum Jump:


Users browsing this thread: 2 Guest(s)