03.12.2010, 06:00
How can i make something like chat-channels?like if youre a cop you type /c bla bla, and all the cops see 'bla bla'?
new pChannel[MAX_PLAYERS];
stock SendClientMessageToChannel(channel, msg[])
{
for(new i; i < MAX_PLAYERS; i++)
{
if(pChannel[i] == channel)
{
SendClientMessage(playerid, COLOUR, msg);
}
}
}
//Usage: SendClientMessageToChannel(channel, msg[])
pChannel[playerid] = (the channel they picked)