OnPlayerText
#6

Код:
public OnPlayerText(playerid, text[])
{
    new string[145], color = GetPlayerColor(playerid);
    GetPlayerName(playerid, string, 25);
    format(string, sizeof (string), "%s [%d]: {FFFFFF}%s", string, playerid, text);

    for (new i, j = GetPlayerPoolSize(); i <= j; i++)
    {
        if (!IsPlayerConnected(i))
            continue;
        if (PlayerInfo[i][pAdmin] > 0)
        {
            SendClientMessage(i, color, string);
            continue;
        }
        SendPlayerMessageToPlayer(i, playerid, text);
    }
    return 0;
}
Reply


Messages In This Thread
OnPlayerText - by Tass007 - 18.08.2016, 11:15
Re: OnPlayerText - by Marricio - 18.08.2016, 12:09
Re: OnPlayerText - by iLearner - 18.08.2016, 12:14
Re: OnPlayerText - by Marricio - 18.08.2016, 12:17
Re: OnPlayerText - by sampkinq - 18.08.2016, 12:18
Re: OnPlayerText - by Stinged - 18.08.2016, 12:19
Re: OnPlayerText - by Tass007 - 19.08.2016, 05:51

Forum Jump:


Users browsing this thread: 3 Guest(s)