13.02.2015, 10:35
u can use as a cmd :
for example:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/chat", true) == 0)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 1, 1, 1);
SendClientMessage(playerid, 0xAFAFAFAA, "talking");
return 1;
}
return 0;
}
for example:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/chat", true) == 0)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 1, 1, 1);
SendClientMessage(playerid, 0xAFAFAFAA, "talking");
return 1;
}
return 0;
}