Send Player Mesage using gTeam?
#1

how do i make it to where by defualt everything you type goes to your team mates? I use gTeam.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    for(new x=0; x!=MAX_PLAYERS; x++)
    {
        if(gTeam[x] == gTeam[playerid])
        {
            new str[128];
            format(str, sizeof(str), "<TeamChat> %s: %s", pName(playerid), text);
            SendClientMessage(playerid, 0xFAFFFF, str);
            return 0;
        }
    }
    return 1;
}
Reply
#3

ok i completely forgot about this but now i need an "everybody" chat. hehe... i saw this one server that you typed "\\ text here will go to the whole team" but i don't know how to do this imma noob!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)