01.07.2014, 20:15
(
Последний раз редактировалось LuxurioN™; 01.07.2014 в 22:04.
)
Vou Postar O Code aqui porque Nгo entendi nada desse tuto li ele todo nгo emtendi !
[...]
Code OnPlayerText
[...]
Code OnPlayerText
pawn Код:
public OnPlayerText(playerid, text[])
{
#if defined DEBUG
format(_largestring, 1280, "[OnPlayerText] \"%s\" - %d, \"%s\"", ReturnPlayerNameEx(playerid), playerid, text);
DebugLog(_largestring);
#endif
new xstr[160];
if(GetPVarInt(playerid, "Muted")) return SendErrorMessage(playerid, -1, "Vocк foi proibido de falar/calado/mutado."), 0;
if(GetPVarInt(playerid, "ChatAnim"))
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
}
if(GetPVarInt(playerid, "SotaqueOn"))
{
format(xstr, 128, "%s [Sotaque %s] diz: %s", ReturnPlayerNameEx(playerid), PlayerInfo[playerid][pSotaque], text);
nearByMessage(playerid, COLOR_FADE1, xstr, 10.0);
}
else
{
format(xstr, 128, "%s diz: %s", ReturnPlayerNameEx(playerid), text);
nearByMessage(playerid, COLOR_FADE1, xstr, 10.0);
}
SetPlayerChatBubble(playerid, xstr, 0xFFFFFFFF, 10, 15000);
print(xstr);
return 0;
}