Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: RW on Apr 04, 2017, 03:56 AM

Title: Team Chat Error
Post by: RW on Apr 04, 2017, 03:56 AM
"\" is not available
Title: Re: Team Chat Error
Post by: vito on Apr 04, 2017, 05:27 AM
Team chat via \ is not in-inbuilt.
Title: Re: Team Chat Error
Post by: Luis_Labarca on Apr 04, 2017, 05:37 AM
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;
}
}
Title: Re: Team Chat Error
Post by: KAKAN on Apr 04, 2017, 07:44 AM
use with \\ not //.
Title: Re: Team Chat Error
Post by: RW on Apr 04, 2017, 10:35 AM
Quote from: vito on Apr 04, 2017, 05:27 AMTeam chat via \ is not in-inbuilt.
I know. But I posted it toooooo simple...