OnPlayerText
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[105];
    if(strlen(text) > 68)
    {
        new texts[60],string2[90];
        strcat(texts,text[68]);
        text[68] = '-';
        text[69] = '\0';
        format(string, sizeof(string), "%s says: %s", GetName(playerid), text);
        format(string2, sizeof(string2), "%s... %s", GetName(playerid), texts);
        ProxDetector(10, playerid, string, 0xE6E6E6AA, 0xC8C8C8AA, 0xAAAAAAAA, 0x8C8C8CAA, 0x6E6E6EAA);
        ProxDetector(10, playerid, string2, 0xE6E6E6AA, 0xC8C8C8AA, 0xAAAAAAAA, 0x8C8C8CAA, 0x6E6E6EAA);
        print(string);
        print(string2);
    }
    else
    {
        format(string, sizeof(string), "%s says: %s", GetName(playerid), text);
        ProxDetector(10, playerid, string, 0xE6E6E6AA, 0xC8C8C8AA, 0xAAAAAAAA, 0x8C8C8CAA, 0x6E6E6EAA);
        print(string);
    }
    return 0;
}
Reply


Messages In This Thread
OnPlayerText - by Mattakil - 08.04.2014, 01:08
Re: OnPlayerText - by Jefff - 08.04.2014, 01:32
Re: OnPlayerText - by Mattakil - 08.04.2014, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)