Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Yankee on Aug 18, 2017, 04:12 PM

Title: Players mustn't type if they weren't spawned.
Post by: Yankee on Aug 18, 2017, 04:12 PM
Hi everybody,my question is simple.I have this syntax,so how can i make it ?I want players mustn't type if they weren't spawned.
Title: Re: Players mustn't type if they weren't spawned.
Post by: Xmair on Aug 18, 2017, 04:18 PM
function onPlayerChat( player, text )
{

         if ( player.IsSpawned ) return 1;
         return 0;

}

Title: Re: Players mustn't type if they weren't spawned.
Post by: Yankee on Aug 18, 2017, 04:36 PM
Quote from: Xmair on Aug 18, 2017, 04:18 PMfunction onPlayerChat( player, text )
{

         if ( player.IsSpawned ) return 1;
         return 0;

}

Thanks sir but can you make a full function,i make this,is it true ?
function onPlayerChat( player, text )
{
         if ( player.IsSpawned )
print( player.Name + ": " + text );
return 1;
}
Title: Re: Players mustn't type if they weren't spawned.
Post by: =RK=MarineForce on Sep 07, 2017, 06:13 PM
http://forum.vc-mp.org/?topic=5100.0
Title: Re: Players mustn't type if they weren't spawned.
Post by: MatheuS on Sep 07, 2017, 06:27 PM
Quote from: Rampages Killers on Sep 07, 2017, 06:13 PMhttp://forum.vc-mp.org/?topic=5100.0

Nice bump!