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.