player.SetPlayerFlag(BasePlayer.PlayerFlags.Invincible, true);I tried the above code, but could not compile it
player.SetPlayerFlag(BasePlayer.PlayerFlags.Invincible, true);I tried the above code, but could not compile it
How about this? Then just use timer for the amount of seconds.
player.net.connection.info.Set("global.god", "true");
Timer turnOff = timer.Once(5f, () =>
{
player.net.connection.info.Set("global.god", "false");
}); zeeuss
How about this? Then just use timer for the amount of seconds.
player.net.connection.info.Set("global.god", "true"); Timer turnOff = timer.Once(5f, () => { player.net.connection.info.Set("global.god", "false"); });
Is it global? Instead of a single player?
It makes only the player who f.e. executes command become invincible, it won't make him admin.dreamIs it global? Instead of a single player?
Merged post
At the same time, will he make players become administrators temporarily?
zeeuss
It makes only the player who f.e. executes command become invincible, it won't make him admin.
Thank you very much. I have finished it
zeeuss
It makes only the player who f.e. executes command become invincible, it won't make him admin.
Hello, after several days of use, I found that this code is only valid for administrators, not for players