08.09.2010, 20:47
Hello guys, I want to create a script that when a player type "lol" is applied to the animation and get an action.
I put this in OnPlayerText but it not work.
I try to put in OnPlayerCommandText with this code:
is compiled successfully, but does not work in any case
Sorry for my bad english з_з
I put this in OnPlayerText but it not work.
pawn Код:
new sendername[MAX_PLAYER_NAME];
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;
}
pawn Код:
if (strcmp("lol", cmdtext, 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;
}
Sorry for my bad english з_з