Team Chat Error

Started by RW, Apr 04, 2017, 03:56 AM

Previous topic - Next topic

RW


vito

Team chat via \ is not in-inbuilt.

Luis_Labarca

#2
use with "!!"
function onPlayerChat( player, text )
{
if ( text.slice(0,1) == "!!" )
{
local text1 = text.slice(1);
for( local i = 0; i < GetMaxPlayers(); i++ )
{
local plr = FindPlayer( i );
if ( plr && plr.Team == player.Team )
{
MessagePlayer("[#00FF00](Team-chat)[#909090]"+player.Name+"[#FFFFFF]: "+text1+" ",plr );
}
}
return 0;
}
}
My server RP
IP: 51.222.28.159:8194

KAKAN

oh no

RW

Quote from: vito on Apr 04, 2017, 05:27 AMTeam chat via \ is not in-inbuilt.
I know. But I posted it toooooo simple...