Clear animations
#3

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Because it's a special action, not an animation. Use this instead.
pawn Код:
SetPlayerSpecialAction(playerid, 0);
Thank you ^^

but one more problem

pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
    {
        new str[64], plname[MAX_PLAYER_NAME];
        new reason[64], strtext[64];
        if(IsPlayerAFK[playerid] == 1) return SendClientMessage(playerid, COLOR_CRVENA, "Du bist bereits in den AFK-Modus");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: /afk [grund]");
            return 1;
        }
        else
        {
            IsPlayerAFK[playerid] = 1;
            TogglePlayerControllable(playerid, false);
            GetPlayerName(playerid, plname, MAX_PLAYER_NAME);
            format(str, sizeof(str), "%s ist in den AFK-Modus gegangen", plname);
            SendClientMessageToAll(COLOR_ZELENA, str);
            format(strtext, sizeof(strtext), ""ZUTA"AFK\nGrund: %s", reason);
            AFK_Label[playerid] = Create3DTextLabel(strtext,COLOR_WHITE,30.0,40.0,50.0,40.0,0);
            Attach3DTextLabelToPlayer(AFK_Label[playerid], playerid, 0.0, 0.0, 0.3);
            SendClientMessage(playerid, COLOR_PLAVA, "Du bist nun in den AFK-Modus, verwende /back wenn du wieder spielen kannst.");
            return 1;
        }
    }
It doesn't show the reason in 3D text, only AFK, Grund:
Reply


Messages In This Thread
Clear animations - by Dripac - 21.03.2012, 15:54
Re: Clear animations - by T0pAz - 21.03.2012, 15:57
Re: Clear animations - by Dripac - 21.03.2012, 15:59
Re: Clear animations - by Baboon - 21.03.2012, 16:07
Re: Clear animations - by T0pAz - 21.03.2012, 16:07
Re: Clear animations - by Dripac - 21.03.2012, 16:37
Re: Clear animations - by T0pAz - 21.03.2012, 16:39
Re: Clear animations - by Dripac - 21.03.2012, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)