Need help
#2

Very simple to do.

First, let's make some worlds, what will be used for this "hand waving"

pawn Код:
new WaveTexts[][3] = { "Hello", "Hi", "Wazap" }; // [3] means, that there are 3 words only. You can add your own ones..
Now, lets make command, what will detect if player says that:

pawn Код:
public OnPlayerText(playerid, text[])
{
        for(new Order = 0; Order < sizeof(WaveTexts); Order++) // Will search if player (playerid) write one of WaveTexts's text
        {
            if(strfind(text, WaveTexts[Order], true) != -1)
            {
                ApplyPlayerAnimation(playerid, ...)
                    ApplyPlayerAnimation(playerid, ...)// Sorry, but forget the code for wave animation. Hope you'll find it out for yourself :) PS. Duplicate this function, to be sure that it will works!
                return 1;
            }
        }
}
Wua-la.
Reply


Messages In This Thread
Need help - by Dan_Barocu - 20.05.2011, 15:41
Re: Need help - by LetsOWN[PL] - 20.05.2011, 15:51
Re: Need help - by Dan_Barocu - 20.05.2011, 15:57
Re: Need help - by LetsOWN[PL] - 20.05.2011, 16:05
Re: Need help - by Dan_Barocu - 20.05.2011, 16:14
Re: Need help - by LetsOWN[PL] - 20.05.2011, 16:18
Re: Need help - by Dan_Barocu - 20.05.2011, 16:28
Re: Need help - by LetsOWN[PL] - 20.05.2011, 16:30
Re: Need help - by Dan_Barocu - 20.05.2011, 16:31
Re: Need help - by LetsOWN[PL] - 20.05.2011, 16:46
Re: Need help - by Seven_of_Nine - 20.05.2011, 17:41
Re: Need help - by LetsOWN[PL] - 20.05.2011, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)