CLASS CHAT
#7

pawn Код:
if(strfind(text[1], "#", true) != -1)
{
    new Msg[256];
    new PName[MAX_PLAYER_NAME];
    strdel(cmdtext, 0, 7);
    GetPlayerName(playerid, PName, sizeof(PName));
    format(Msg, sizeof(Msg), "[TEAM CHAT] %s: %s", PName, cmdtext);
    for(new i; i < GetMaxPlayers(); i++) if(FactionNum[playerid] == FactionNum[i]) SendClientMessage(i, 0x00FF00FF, Msg);
}
Put that in OnPlayerText, and change FactionNum to whatever variable the script uses for each player's faction, then you can do #text.
Reply


Messages In This Thread
CLASS CHAT - by Zebadee - 20.02.2009, 16:33
Re: CLASS CHAT - by Zebadee - 20.02.2009, 16:52
Re: CLASS CHAT - by Vyorel - 20.02.2009, 16:53
Re: CLASS CHAT - by Zebadee - 20.02.2009, 17:28
Re: CLASS CHAT - by Daren_Jacobson - 20.02.2009, 17:43
Re: CLASS CHAT - by Zebadee - 20.02.2009, 18:10
Re: CLASS CHAT - by Ghett0 - 20.02.2009, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)