Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: luchgox on Jun 01, 2017, 06:19 AM

Title: [Fuzzie Account System] how to set player health to zero if not logged in
Post by: luchgox on Jun 01, 2017, 06:19 AM
How to set player health to zero,when he did spawns If not logged in?If there's anyway to settup this?

Title: Re: [Fuzzie Account System] how to set player health to zero if not logged in
Post by: luchgox on Jun 01, 2017, 06:37 AM
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;
}
}