// in orice loc al modului chiar si la sfirsit

stock SaveWAndT()
{
new strtmp[8];
GetServerVarAsString("weather", strtmp, sizeof strtmp);
SetSVarString("un_Weather", strtmp);
GetServerVarAsString("worldtime", strtmp, sizeof strtmp);
SetSVarString("un_WorldTime", strtmp);
}

stock LoadWAndT()
{
new strtmp[8];
if(GetSVarType("un_Weather"))
{
GetSVarString("un_Weather", strtmp, sizeof strtmp);
SetWeather(strval(strtmp));
}
if(GetSVarType("un_WorldTime"))
{
GetSVarString("un_WorldTime", strtmp, sizeof strtmp);
SetWorldTime(strval(strtmp));
}
}

Extinde
Citat
// trecem la publicuri si introducem aceste stock-uri

public OnGameModeInit()
{
LoadWAndT();
return 1;
}