28.12.2011, 23:55
Im using local chat:
What can I add to that so when you type for example .yo, it comes up in a bubble for few seconds, when you use a "." before the text
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s mуwi: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,4,4);
return 0;
}