show rank when player texts
#5

You see, i saw the code from below. The below one just does the same thing, instead it sends it to team chat.
I tried to remove the team chat, and just use it in normal chat.

pawn Код:
CMD:r(playerid, params[])
{
    new text[128];
    if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, C_GREY, "USAGE: /r [text]");

    new string[128];
    format(string, sizeof(string), "** %s %s [%d]: %s **", ClassName(playerid), Name(playerid), playerid, text);
    foreach(Player, i)
    {
        if(gTeam[playerid] == gTeam[i])
        {
            SendClientMessage(i, C_RADIOBLUE, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
show rank when player texts - by Eminem 2ka9 - 16.03.2013, 21:41
Re: show rank when player texts - by Scenario - 16.03.2013, 21:47
Re: show rank when player texts - by Eminem 2ka9 - 16.03.2013, 21:53
Re: show rank when player texts - by Jstylezzz - 16.03.2013, 21:55
Re: show rank when player texts - by Eminem 2ka9 - 16.03.2013, 22:03
Re: show rank when player texts - by Vince - 16.03.2013, 22:05
Re: show rank when player texts - by Scenario - 16.03.2013, 22:05
Re: show rank when player texts - by Eminem 2ka9 - 16.03.2013, 22:16
Re: show rank when player texts - by Eminem 2ka9 - 16.03.2013, 22:22
Re: show rank when player texts - by Bicentric - 16.03.2013, 22:38

Forum Jump:


Users browsing this thread: 2 Guest(s)