29.12.2011, 16:12
(
Последний раз редактировалось HondaCBR; 29.12.2011 в 19:23.
)
I posted topic on this before, I know. But it hasnt been helpful and the heading doesnt match the problem so I edited the command as much as I could and Im posting again, sorry if its double posint.
Still doesnt work. I want: IF you type in the chat:
"Yo" - It will come up as Name says: Yo [this works]
".Yo" - It will come up in a bubble above your head for like 5s [Doesnt work]
Still doesnt work. I want: IF you type in the chat:
"Yo" - It will come up as Name says: Yo [this works]
".Yo" - It will come up in a bubble above your head for like 5s [Doesnt work]
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text[0], ".", true))
{
SetPlayerChatBubble(playerid, text[1], 0xFF0000FF, 100.0, 10000);
return 1;
}
else
{
new string[256];
new sendername[MAX_PLAYER_NAME];
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %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;
}
}