Error in the code is because you aren't defining the player in timer and in the function you've set extra arguments.
Use:
And change function to :
To set time, use this function
And to set server weather use SetWeather function
Use:
Code Select
NewTimer ( "heal", 5000, 1, player.ID );
And change function to :
Code Select
function heal(ID)
{
local player = FindPlayer (ID);
if (plr)
{
Player.Health = 100.;
MessagePlayer( "[#FFFF81]---> You have been healed !", player);
}
else return 0;
}
To set time, use this function
And to set server weather use SetWeather function