[Help] Animation problem
#6

Quote:
Originally Posted by umarmalik
Посмотреть сообщение
Here is onplayerText:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new tmp[128];
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s: ID:%d  TEXT: %s", sendername, playerid, text);
    TextLog(string);
    if (gPlayerLogged[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "[SERVER]: You are not logged in.");
        return 0;
    }
    else if(BenchPresses[playerid] != 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot use this while bench pressing.");
        return 0;
    }
    else if(Hospitalized[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, " You cannot do this right now !");
        return 0;
    }
    else if(Mute[playerid] == 1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
        return 0;
    }
    else if(UsingSpawnBar[playerid] > 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, " You cannot do this right now !");
        return 0;
    }
Find the ApplyAnimation in OnPlayerText and put like this:

pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE) ApplyAnimation(/*whatever is in your code*/);
Reply


Messages In This Thread
[Help] Animation problem - by umarmalik - 18.10.2011, 10:40
Re: [Help] Animation problem - by Shelby - 18.10.2011, 10:47
Re: [Help] Animation problem - by Pharrel - 18.10.2011, 10:50
Re: [Help] Animation problem - by TheMaddox - 18.10.2011, 10:51
Re: [Help] Animation problem - by umarmalik - 18.10.2011, 11:05
Re: [Help] Animation problem - by Pharrel - 18.10.2011, 11:10
Re: [Help] Animation problem - by umarmalik - 18.10.2011, 11:22
Re: [Help] Animation problem - by Shelby - 18.10.2011, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)