Problem with cmd
#5

Quote:
Originally Posted by Mikkel_Pedersen
Посмотреть сообщение
OnPlayerCommandText is called when you start the text with '/'. If you want it to work add a '/' infront of the "lol". If you want it to happen to people who type it in the chat use OnPlayerText
I try tu put in OnPlayerText but it not work. When I type "lol" appares lol in chat, but not appares the anim or the actions
Quote:
Originally Posted by MartinDee
Посмотреть сообщение
pawn Код:
public OnPlayerText;
{
      new sendername[MAX_PLAYER_NAME];
      new idx;
      tmp = strtok(text, idx);
      if (strcmp("lol", tmp, true) == 0)
      {
            format(string, sizeof(string, "* %s ride con gusto", sendername);
            ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0, 1);
            return 1;
      }
      return 0;
}
// I hope you have string set.. new string[ 128 ];
// + If you edditing some mod, than you will have strtok, if not, say me..
// Not tested, but should work..
Ok im going to test.
Reply


Messages In This Thread
Problem with cmd - by Daniele_Pelle - 08.09.2010, 20:47
Re: Problem with cmd - by Daniele_Pelle - 09.09.2010, 09:34
Re: Problem with cmd - by Mikkel_Pedersen - 09.09.2010, 09:40
Re: Problem with cmd - by MartinDee - 09.09.2010, 09:41
Re: Problem with cmd - by Daniele_Pelle - 09.09.2010, 09:42
Re: Problem with cmd - by LarzI - 09.09.2010, 09:46
Re: Problem with cmd - by New_Player[USW] - 09.09.2010, 10:59
Re: Problem with cmd - by LarzI - 09.09.2010, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)