[Fuzzie Account System] how to set player health to zero if not logged in

Started by luchgox, Jun 01, 2017, 06:19 AM

Previous topic - Next topic

luchgox

How to set player health to zero,when he did spawns If not logged in?If there's anyway to settup this?

Strength does not come from wining.Your struggles develop your strengths.

luchgox

Phaw,solved by myself.
Here's a code if you want:
function onPlayerSpawn( player )
{
if( pstats[ player.ID ].Logged == false ){
MessagePlayer( "[#1ffff9]You need to login/register first.", player );
player.Health -=100;
}
}
Strength does not come from wining.Your struggles develop your strengths.