[Pedido] Chat RPG !
#5

Vou Postar O Code aqui porque Nгo entendi nada desse tuto li ele todo nгo emtendi !

[...]

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;
}
Reply


Messages In This Thread
Chat RPG ! - by K0Y0T3 - 01.07.2014, 19:23
Re: Chat RPG ! - by SpeakDS - 01.07.2014, 19:25
Re: Chat RPG ! - by K0Y0T3 - 01.07.2014, 19:28
Re: Chat RPG ! - by PT - 01.07.2014, 19:57
[No subject] - by K0Y0T3 - 01.07.2014, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)