Players mustn't type if they weren't spawned.

Started by Yankee, Aug 18, 2017, 04:12 PM

Previous topic - Next topic

Yankee

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.

Xmair

function onPlayerChat( player, text )
{

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

}


Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Yankee

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;
}


MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.